test
This commit is contained in:
parent
f5c9ecac8c
commit
6be1a4a516
1 changed files with 9 additions and 11 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue