slim not522-installer maybe

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-15 08:18:39 +01:00
parent e3ed9898fe
commit 7e3fef1c7f

View file

@ -1,22 +1,10 @@
{ {
nixos-config, nixos-config,
config, config,
pureInputs,
pkgs, pkgs,
nixpkgs, 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"; networking.hostName = "not522-installer";
imports = [ imports = [
@ -29,7 +17,10 @@ in
system.stateVersion = config.system.nixos.version; 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 = [ environment.systemPackages = [
(pkgs.writeShellScriptBin "install-nixos-unattended" '' (pkgs.writeShellScriptBin "install-nixos-unattended" ''