Use metadata in home-manager configuration

This commit is contained in:
Greg Hellings
2025-12-22 15:31:33 -06:00
parent 856d4ec627
commit 21f23945c6
2 changed files with 15 additions and 6 deletions
+9 -6
View File
@@ -4,11 +4,14 @@
top,
}:
let
pkgs = system: nixpkgs.${system};
user =
system: host: username:
host: username:
let
inherit (metadata.hosts.${host}) system;
pkgs = nixpkgs.${system};
in
top.hmunstable.lib.homeManagerConfiguration {
pkgs = pkgs system;
inherit pkgs;
modules = [
../modules/nix-conf.nix
./home.nix
@@ -25,11 +28,11 @@ let
gnome = false;
};
};
greg = host: (user "x86_64-linux" host "greg");
greg = host: (user host "greg");
in
{
"MacBook-Pro.local" = user "aarch64-darwin" "ivr" "gregory.hellings";
"MacBook-Prolocal.local" = user "aarch64-darwin" "ivr" "gregory.hellings";
"MacBook-Pro.local" = user "ivr" "gregory.hellings";
"MacBook-Prolocal.local" = user "ivr" "gregory.hellings";
genesis = greg "genesis";
exodus = greg "exodus";
zeke = greg "zeke";
+6
View File
@@ -60,6 +60,12 @@
"system": "x86_64-linux",
"tags": ["public", "server"]
},
"MacBook-Pro.local": {
"system": "aarc64-darwin"
},
"MacBook-Prolocal.local": {
"system": "aarc64-darwin"
},
"nas1": {
"ip": "10.42.1.14",
"ts": "100.114.187.61"