blob: 4382d534fc9b6d2e4db8767e184a86515b739de8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ lib, ... }:
let
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 = [
# 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"
'';
}
|