grace/dots
dotfiles/nix configs
git clone https://git.gae.moe/grace/dots
01e3245
main
1{ 2lib , 3config , 4 ... 5} : 6 7let 8host = import ./hosts.nix ; 9in 10{ 11home = { 12username = host . user ; 13homeDirectory = host . home ; 14sessionVariables = { 15NIX_HOST = "\${NIX_HOST:-$(hostname -f 2>/dev/null || hostname)}" ; 16}; 17}; 18 19nixpkgs . config . allowUnfree = true ; 20 21imports = [ 22./home/base.nix 23./home/shell.nix 24./home/helix.nix 25./home/tmux.nix 26./home/vim.nix 27./home/vcs.nix 28] 29++ lib . optional ( host . type != "nixos" ) ( import ./home/ssh.nix { }) 30++ lib . optionals ( host . name == "turing" ) [ 31./home/langs.nix 32./home/packages.nix 33./home/typst.nix 34./home/pkgs_mac.nix 35./home/ghostty.nix 36] 37++ lib . optionals ( host . name == "cs.purdue.edu" ) [ 38./home/langs.nix 39./home/cs_purdue.nix 40./home/typst.nix 41./home/linux.nix 42] 43++ lib . optionals ( host . name == "vulcan" ) [ 44./home/langs.nix 45./home/linux.nix 46] 47++ lib . optionals ( host . name == "dijkstra" ) [ 48./home/langs.nix 49./home/linux.nix 50./home/typst.nix 51] 52++ 53lib . optionals 54( builtins . elem host . name [ 55"knuth" 56"portable" 57]) 58[ 59./home/linux.nix 60]; 61}