summaryrefslogtreecommitdiff
path: root/home.nix
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-10-03 14:54:12 -0400
committerGrace Yoder <grace_yoder@outlook.com>2026-10-05 15:08:18 -0400
commitfdde154c63eeb8e6aac5129f9226f38c4b0b8bf0 (patch)
treee34e1728e20886595bb7db4bd81939f3b694d755 /home.nix
parent1f58bc3f3c9947c988567c8c16a853ff918f3e98 (diff)
hamano againvulcan
Diffstat (limited to 'home.nix')
-rwxr-xr-xhome.nix38
1 files changed, 34 insertions, 4 deletions
diff --git a/home.nix b/home.nix
index 26a425c..85ad395 100755
--- a/home.nix
+++ b/home.nix
@@ -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
];
}