This commit is contained in:
iFargle 2024-02-09 22:53:11 +09:00
parent 85c7f764f7
commit 229fbcce7c

View file

@ -43,21 +43,20 @@
type ? "default", type ? "default",
repo ? "nixpkgs", repo ? "nixpkgs",
unfree ? false unfree ? false
}: inputs.${repo}.lib.nixosSystem { }: {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; };
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;
}; };
inputs.${repo}.lib.nixosSystem {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; };
modules = [ modules = [
# Types are 'default', 'small', and 'minimal' # Types are 'default', 'small', and 'minimal'
../nixos/${type}.nix ../nixos/${type}.nix
@ -65,6 +64,7 @@
inputs.lanzaboote.nixosModules.lanzaboote inputs.lanzaboote.nixosModules.lanzaboote
]; ];
}; };
};
# Combines mkHost and mkHome for image building # Combines mkHost and mkHome for image building
mkImage = { mkImage = {