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