This commit is contained in:
iFargle 2024-02-09 22:59:27 +09:00
parent f5c9ecac8c
commit 6be1a4a516

View file

@ -32,7 +32,7 @@
];
};
# Helper function for generating host configs
# Helper function for generating host configs
mkHost = {
hostname,
username ? "albert",
@ -43,9 +43,8 @@
type ? "default",
repo ? "nixpkgs",
unfree ? false
}:
inputs.${repo}.lib.nixosSystem {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; };
}:inputs.${repo}.lib.nixosSystem {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; };
pkgs = import inputs.${repo} {
inherit system;
@ -59,13 +58,12 @@
hostPlatform = system;
};
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