feat: pull dynamic names for Darwin/Home

This commit is contained in:
Greg Hellings
2026-04-06 16:21:02 -05:00
parent 0d70a9e018
commit 6b7f54d0a2
15 changed files with 64 additions and 49 deletions
+8 -17
View File
@@ -4,11 +4,13 @@
top,
}:
let
inherit (top.nixunstable) lib;
user =
host: username:
host:
let
inherit (metadata.hosts.${host}) system;
pkgs = nixpkgs.${system};
username = if builtins.hasAttr "user" metadata.hosts.${host} then metadata.hosts.${host}.user else "greg";
in
top.hmunstable.lib.homeManagerConfiguration {
inherit pkgs;
@@ -28,20 +30,9 @@ let
gnome = false;
};
};
greg = host: (user host "greg");
in
{
"MacBook-Pro.local" = user "ivr" "gregory.hellings";
"MacBook-Prolocal.local" = user "ivr" "gregory.hellings";
"MacBook-Pro.thehellings.lan" = user "ivr" "gregory.hellings";
"gregory.hellings-mbp" = user "ivr" "gregory.hellings";
genesis = greg "genesis";
exodus = greg "exodus";
zeke = greg "zeke";
isaiah = greg "isaiah";
jeremiah = greg "jeremiah";
li = user "li" "gregory.hellings";
linode = greg "linode";
hosea = greg "hosea";
gitlab = greg "gitlab";
}
(
lib.genAttrs
(builtins.attrNames (builtins.readDir ./hosts))
user
)
@@ -1,11 +1,9 @@
{
pkgs,
lib,
username,
...
}:
let
username = "gregory.hellings";
in
{
# Disables hitting local cache
_module.args.cache = lib.mkForce false;
+1
View File
@@ -0,0 +1 @@
gregory.hellings-mbp/
@@ -4,7 +4,7 @@
...
}:
let
username = "gregory.hellings";
username = "greg";
in
{
# Disables hitting local cache
@@ -13,7 +13,7 @@ in
development = true;
gui = true;
nix.cache = false;
vscodium = false;
zed = true;
};
home = {