summaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-10-03 14:54:12 -0400
committerGrace Yoder <grace_yoder@outlook.com>2026-10-05 15:08:18 -0400
commitfdde154c63eeb8e6aac5129f9226f38c4b0b8bf0 (patch)
treee34e1728e20886595bb7db4bd81939f3b694d755 /configuration.nix
parent1f58bc3f3c9947c988567c8c16a853ff918f3e98 (diff)
hamano againvulcan
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix21
1 files changed, 18 insertions, 3 deletions
diff --git a/configuration.nix b/configuration.nix
index 2b48913..4382d53 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -1,7 +1,22 @@
-{ ... }:
+{ lib, ... }:
let
- host = import ./host.nix;
+ host = import ./hosts.nix;
+ # system = import ./system.nix;
in
+assert lib.assertMsg (
+ host.type != "home"
+) "${host.name} is a Home Manager host; use home-manager instead.";
{
- imports = [ (./hosts + "/${host.name}.nix") ];
+ imports = [
+ # system.module
+ (./hosts + "/${host.name}.nix")
+ ]
+ ++ lib.optional (host.type == "nixos") (./hosts/hardware-configurations + "/${host.name}.nix");
+
+ nixpkgs.hostPlatform = host.system;
+ # nix.settings.nix-path = lib.mkDefault system.module.nix.nixPath;
+
+ security.sudo.extraConfig = ''
+ Defaults env_keep += "NIX_HOST"
+ '';
}