slim not522-installer maybe
This commit is contained in:
parent
e3ed9898fe
commit
7e3fef1c7f
1 changed files with 4 additions and 13 deletions
|
@ -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" ''
|
||||
|
|
Loading…
Reference in a new issue