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 = { mkHost = {
hostname, hostname,
username ? "albert", username ? "albert",
@ -43,9 +43,8 @@
type ? "default", type ? "default",
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; };
pkgs = import inputs.${repo} { pkgs = import inputs.${repo} {
inherit system; inherit system;
@ -59,13 +58,12 @@
hostPlatform = system; hostPlatform = system;
}; };
modules = [ modules = [
# 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