Use metadata in home-manager configuration
This commit is contained in:
+9
-6
@@ -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";
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user