diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-10-03 14:54:12 -0400 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-10-05 15:08:18 -0400 |
| commit | fdde154c63eeb8e6aac5129f9226f38c4b0b8bf0 (patch) | |
| tree | e34e1728e20886595bb7db4bd81939f3b694d755 /home.nix | |
| parent | 1f58bc3f3c9947c988567c8c16a853ff918f3e98 (diff) | |
hamano againvulcan
Diffstat (limited to 'home.nix')
| -rwxr-xr-x | home.nix | 38 |
1 files changed, 34 insertions, 4 deletions
@@ -1,24 +1,31 @@ { lib, + config, ... }: let - host = import ./host.nix; + host = import ./hosts.nix; in { home = { username = host.user; homeDirectory = host.home; + sessionVariables = { + NIX_HOST = "\${NIX_HOST:-$(hostname -f 2>/dev/null || hostname)}"; + XDG_CONFIG_HOME = "${host.home}/.config"; + }; }; + nixpkgs.config.allowUnfree = true; + imports = [ + # (import ./system.nix).module ./home/base.nix ./home/shell.nix ./home/helix.nix ./home/tmux.nix ./home/vim.nix - ./home/langs.nix ./home/vcs.nix ] ++ lib.optionals (host.name == "turing") [ @@ -28,15 +35,38 @@ in "h:turing" ]; }) + ./home/langs.nix ./home/packages.nix ./home/typst.nix ./home/pkgs_mac.nix ./home/ghostty.nix - ] - ++ lib.optionals (lib.hasSuffix "cs.purdue.edu" host.name) [ + ++ lib.optionals (host.name == "cs.purdue.edu") [ # Symlinked items from nix store are bad and do not work for ssh + ./home/langs.nix ./home/cs_purdue.nix ./home/typst.nix + ./home/linux.nix + ] + ++ lib.optionals (host.name == "vulcan") [ + ./home/langs.nix + (import ./home/ssh.nix { + principals = [ + "t:human" + "t:dev" + "h:vulcan" + ]; + }) + ./home/linux.nix + ] + ++ lib.optionals (host.name == "knuth") [ + (import ./home/ssh.nix { + principals = [ + "t:human" + "t:dev" + "h:knuth" + ]; + }) + ./home/linux.nix ]; } |
