From 6afe7c562dd090ab6b9f3e9c2b9faddbd5abd84e Mon Sep 17 00:00:00 2001 From: Lilith Date: Thu, 27 Feb 2025 00:08:36 +0100 Subject: [PATCH] headless/home --- flake.nix | 5 ++++- headless/default.nix | 1 + home/default.nix | 1 + result | 1 + system/default.nix | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 headless/default.nix create mode 100644 home/default.nix create mode 120000 result diff --git a/flake.nix b/flake.nix index a5574aff..1e423e6b 100644 --- a/flake.nix +++ b/flake.nix @@ -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 [ diff --git a/headless/default.nix b/headless/default.nix new file mode 100644 index 00000000..64629674 --- /dev/null +++ b/headless/default.nix @@ -0,0 +1 @@ +{...}: {} diff --git a/home/default.nix b/home/default.nix new file mode 100644 index 00000000..64629674 --- /dev/null +++ b/home/default.nix @@ -0,0 +1 @@ +{...}: {} diff --git a/result b/result new file mode 120000 index 00000000..72e85af8 --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/7zqckfh65m2qmgygpvypxfxn2nywsgar-nixos-system-lilith-pc-25.05.20241126.af51545 \ No newline at end of file diff --git a/system/default.nix b/system/default.nix index 99a4a168..d97697aa 100644 --- a/system/default.nix +++ b/system/default.nix @@ -2,4 +2,6 @@ imports = [ ./boot.nix ]; + + # lib.mkForce }