feat: pull dynamic names for Darwin/Home
This commit is contained in:
+8
-17
@@ -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;
|
||||
Symlink
+1
@@ -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 = {
|
||||
Reference in New Issue
Block a user