From d469331d3b889b8a2d57fa87e74c71c3f1323138 Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 9 Feb 2024 22:05:08 +0900 Subject: [PATCH] test --- lib/default.nix | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index e657f754..261bc911 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -45,23 +45,25 @@ unfree ? false }: inputs.${repo}.lib.nixosSystem { specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; }; - pkgs = import inputs.${repo} { - inherit system; - config.allowUnfree = unfree; - hostPlatform = system; - }; - unstable-pkgs = import inputs.nixpkgs-unstable { - inherit system; - config.allowUnfree = unfree; - hostPlatform = system; - }; - - modules = [ + let + pkgs = import inputs.${repo} { + inherit system; + config.allowUnfree = unfree; + hostPlatform = system; + }; + unstable-pkgs = import inputs.nixpkgs-unstable { + inherit system; + config.allowUnfree = unfree; + hostPlatform = system; + }; + in { + modules = [ # Types are 'default', 'small', and 'minimal' ../nixos/${type}.nix inputs.sops-nix.nixosModules.sops inputs.lanzaboote.nixosModules.lanzaboote - ]; + ]; + }; }; # Combines mkHost and mkHome for image building