users
This commit is contained in:
parent
240a322ec6
commit
72cd7b3696
3 changed files with 57 additions and 5 deletions
11
flake.nix
11
flake.nix
|
|
@ -32,13 +32,13 @@
|
|||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
...
|
||||
} @ inputs: let
|
||||
inherit (nixpkgs) lib;
|
||||
|
||||
defaultConfig = {
|
||||
headless = false;
|
||||
home = true;
|
||||
desktop = true;
|
||||
};
|
||||
|
||||
makeHost = host: let
|
||||
|
|
@ -53,8 +53,11 @@
|
|||
./hosts/${host}/hardware-configuration.nix
|
||||
./system
|
||||
{networking.hostName = host;}
|
||||
] ++ lib.optionals config.headless [ ./headless ]
|
||||
++ lib.optionals config.desktop [ ./home ];
|
||||
]
|
||||
++ lib.optionals config.desktop [
|
||||
home-manager
|
||||
./home
|
||||
];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = lib.pipe ./hosts [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue