diff --git a/flake.nix b/flake.nix index c8350d1..4fa7ed8 100644 --- a/flake.nix +++ b/flake.nix @@ -219,6 +219,20 @@ }; in [ template.nixosConfigurations.default.config.system.build.toplevel template.homeConfigurations.${username}.activationPackage + + # …and one representative disko script: its tool closure + # (file, which, wrapper hooks, …) isn't otherwise on the + # ISO, and offline nix would try to build it from source. + # The user's actual args produce a different script drv, + # but with identical inputs — built offline in seconds. + (import "${pkgs.disko}/share/disko/cli.nix" { + inherit pkgs; + mode = "destroy,format,mount"; + diskoFile = ./pkgs/nomarchy-install/disko-config.nix; + mainDrive = "/dev/vda"; + withLuks = true; + swapSize = "2G"; + }) ] ); }