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;
|
inherit (nixpkgs) lib;
|
||||||
|
|
||||||
defaultConfig = {
|
defaultConfig = {
|
||||||
|
headless = false;
|
||||||
|
home = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
makeHost = host: let
|
makeHost = host: let
|
||||||
|
|
@ -51,7 +53,8 @@
|
||||||
./hosts/${host}/hardware-configuration.nix
|
./hosts/${host}/hardware-configuration.nix
|
||||||
./system
|
./system
|
||||||
{networking.hostName = host;}
|
{networking.hostName = host;}
|
||||||
];
|
] ++ lib.optionals config.headless [ ./headless ]
|
||||||
|
++ lib.optionals config.desktop [ ./home ];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = lib.pipe ./hosts [
|
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 = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# lib.mkForce
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue