grace/dots

dotfiles/nix configs

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

Grace Yoderchanged words.gay and added home manager dijkstra stuff01e3245

main
1.1 KiB61 linesraw
1{
2  lib,
3  config,
4  ...
5}:
6
7let
8  host = import ./hosts.nix;
9in
10{
11  home = {
12    username = host.user;
13    homeDirectory = host.home;
14    sessionVariables = {
15      NIX_HOST = "\${NIX_HOST:-$(hostname -f 2>/dev/null || hostname)}";
16    };
17  };
18
19  nixpkgs.config.allowUnfree = true;
20
21  imports = [
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  ++
53    lib.optionals
54      (builtins.elem host.name [
55        "knuth"
56        "portable"
57      ])
58      [
59        ./home/linux.nix
60      ];
61}