grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderhamano againa4b6f88

wafrn-testing
557 B22 linesraw
1{ lib, ... }:
2let
3  host = import ./hosts.nix;
4  # system = import ./system.nix;
5in
6assert lib.assertMsg (
7  host.type != "home"
8) "${host.name} is a Home Manager host; use home-manager instead.";
9{
10  imports = [
11    # system.module
12    (./hosts + "/${host.name}.nix")
13  ]
14  ++ lib.optional (host.type == "nixos") (./hosts/hardware-configurations + "/${host.name}.nix");
15
16  nixpkgs.hostPlatform = host.system;
17  # nix.settings.nix-path = lib.mkDefault system.module.nix.nixPath;
18
19  security.sudo.extraConfig = ''
20    Defaults env_keep += "NIX_HOST"
21  '';
22}