headless/home
This commit is contained in:
parent
a9d0f1e6b7
commit
6afe7c562d
5 changed files with 9 additions and 1 deletions
|
|
@ -37,6 +37,8 @@
|
|||
inherit (nixpkgs) lib;
|
||||
|
||||
defaultConfig = {
|
||||
headless = false;
|
||||
home = true;
|
||||
};
|
||||
|
||||
makeHost = host: let
|
||||
|
|
@ -51,7 +53,8 @@
|
|||
./hosts/${host}/hardware-configuration.nix
|
||||
./system
|
||||
{networking.hostName = host;}
|
||||
];
|
||||
] ++ lib.optionals config.headless [ ./headless ]
|
||||
++ lib.optionals config.desktop [ ./home ];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = lib.pipe ./hosts [
|
||||
|
|
|
|||
1
headless/default.nix
Normal file
1
headless/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{...}: {}
|
||||
1
home/default.nix
Normal file
1
home/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{...}: {}
|
||||
1
result
Symbolic link
1
result
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
/nix/store/7zqckfh65m2qmgygpvypxfxn2nywsgar-nixos-system-lilith-pc-25.05.20241126.af51545
|
||||
|
|
@ -2,4 +2,6 @@
|
|||
imports = [
|
||||
./boot.nix
|
||||
];
|
||||
|
||||
# lib.mkForce
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue