From 7e3fef1c7f50cc2c6cc84b3e320db999e5d2ebc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 15 Nov 2024 08:18:39 +0100 Subject: [PATCH] slim not522-installer maybe --- machine/not522/installer/default.nix | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) 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" ''