This commit is contained in:
iFargle 2024-02-09 22:41:39 +09:00
parent a34d8bc465
commit 14ae2a1b53

View file

@ -44,26 +44,25 @@
repo ? "nixpkgs", repo ? "nixpkgs",
unfree ? false unfree ? false
}: inputs.${repo}.lib.nixosSystem { }: inputs.${repo}.lib.nixosSystem {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; }; specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; };
modules = let modules = let
pkgs = import inputs.${repo} { pkgs = import inputs.${repo} {
inherit system; inherit system;
config.allowUnfree = unfree; config.allowUnfree = unfree;
hostPlatform = system; hostPlatform = system;
}; };
unstable-pkgs = import inputs.nixpkgs-unstable { unstable-pkgs = import inputs.nixpkgs-unstable {
inherit system; inherit system;
config.allowUnfree = unfree; config.allowUnfree = unfree;
hostPlatform = system; hostPlatform = system;
}; };
in [ in [
# Types are 'default', 'small', and 'minimal' # Types are 'default', 'small', and 'minimal'
../nixos/${type}.nix ../nixos/${type}.nix
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote inputs.lanzaboote.nixosModules.lanzaboote
]; ];
};
}; };
# Combines mkHost and mkHome for image building # Combines mkHost and mkHome for image building