blob: 00f19a0f65da5acfe02de8bc481abc2b8b2d8e57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ inputs }:
{ hostname, system ? "x86_64-linux", users ? [ "tom" ], extraModules ? [ ] }:
inputs.nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
../modules/nixos/common.nix
../hosts/${hostname}/configuration.nix
inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserHomeDirectory = true;
home-manager.users = builtins.listToAttrs (map
(u: {
name = u;
value = import ../users/${u}.nix;
})
users);
}
] ++ extraModules;
}
|