diff --git a/machine/not522/installer/default.nix b/machine/not522/installer/default.nix index 8090bef3..6c8894db 100644 --- a/machine/not522/installer/default.nix +++ b/machine/not522/installer/default.nix @@ -1,22 +1,10 @@ { nixos-config, config, - pureInputs, pkgs, nixpkgs, ... }: -let - dependencies = [ - nixos-config.nixosConfigurations.not522.config.system.build.toplevel - nixos-config.nixosConfigurations.not522.config.system.build.diskoScript - nixos-config.nixosConfigurations.not522.config.system.build.diskoScript.drvPath - nixos-config.nixosConfigurations.not522.pkgs.stdenv.drvPath - (nixos-config.nixosConfigurations.not522.pkgs.closureInfo { rootPaths = [ ]; }).drvPath - ] ++ map (i: i.outPath) (builtins.filter builtins.isAttrs (builtins.attrValues pureInputs)); - - closureInfo = pkgs.closureInfo { rootPaths = dependencies; }; -in { networking.hostName = "not522-installer"; imports = [ @@ -29,7 +17,10 @@ in system.stateVersion = config.system.nixos.version; - environment.etc."install-closure".source = "${closureInfo}/store-paths"; + environment.etc."system/not522".source = "${nixos-config.nixosConfigurations.not522.config.system.build.toplevel + }"; + environment.etc."system/not522-disko".source = "${nixos-config.nixosConfigurations.not522.config.system.build.diskoScript + }"; environment.systemPackages = [ (pkgs.writeShellScriptBin "install-nixos-unattended" ''