From 7c3670102d9961a7cc4e137df3571bf29662b5ee Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 9 Feb 2024 22:09:38 +0900 Subject: [PATCH] test --- lib/default.nix | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index e6730185..f1d99c13 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -43,28 +43,20 @@ type ? "default", repo ? "nixpkgs", unfree ? false - }: - let + }: 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; - }; - in { - inputs.${repo}.lib.nixosSystem { - specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; }; - modules = [ - # Types are 'default', 'small', and 'minimal' - ../nixos/${type}.nix - inputs.sops-nix.nixosModules.sops - inputs.lanzaboote.nixosModules.lanzaboote - ]; - }; + + 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