diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-10-03 14:54:12 -0400 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-10-05 15:08:18 -0400 |
| commit | fdde154c63eeb8e6aac5129f9226f38c4b0b8bf0 (patch) | |
| tree | e34e1728e20886595bb7db4bd81939f3b694d755 /configuration.nix | |
| parent | 1f58bc3f3c9947c988567c8c16a853ff918f3e98 (diff) | |
hamano againvulcan
Diffstat (limited to 'configuration.nix')
| -rw-r--r-- | configuration.nix | 21 |
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" + ''; } |
