diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/disk.nix | 20 |
1 files changed, 15 insertions, 5 deletions
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 |
