From 30c548dbffe5ed489b0603c4d388a26a7aba4969 Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Sat, 6 Jun 2026 20:52:09 -0700 Subject: put depotImage along other generators and use naming conventions --- modules/disk.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'modules/disk.nix') diff --git a/modules/disk.nix b/modules/disk.nix index 79885cd..071c9ea 100644 --- a/modules/disk.nix +++ b/modules/disk.nix @@ -15,7 +15,10 @@ let ; in { - imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + (modulesPath + "/image/file-options.nix") + ]; options.depot.disk = { enable = lib.mkEnableOption "Apply depot-standard ZFS disk layout."; @@ -112,10 +115,17 @@ in }; }; - system.build.image = pkgs.depot.make-zfs-image.override { - inherit pkgs lib config; - format = "qcow2"; - }; + image.modules.depot = + { config, modulesPath, ... }: + { + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + + image.extension = "qcow2"; + system.build.image = pkgs.depot.make-zfs-image.override { + inherit pkgs lib config; + inherit (config.image) fileName extension; + }; + }; # datasets = # let -- cgit v1.3.1