Use metadata in home-manager configuration
This commit is contained in:
+9
-6
@@ -4,11 +4,14 @@
|
|||||||
top,
|
top,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pkgs = system: nixpkgs.${system};
|
|
||||||
user =
|
user =
|
||||||
system: host: username:
|
host: username:
|
||||||
|
let
|
||||||
|
inherit (metadata.hosts.${host}) system;
|
||||||
|
pkgs = nixpkgs.${system};
|
||||||
|
in
|
||||||
top.hmunstable.lib.homeManagerConfiguration {
|
top.hmunstable.lib.homeManagerConfiguration {
|
||||||
pkgs = pkgs system;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
../modules/nix-conf.nix
|
../modules/nix-conf.nix
|
||||||
./home.nix
|
./home.nix
|
||||||
@@ -25,11 +28,11 @@ let
|
|||||||
gnome = false;
|
gnome = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
greg = host: (user "x86_64-linux" host "greg");
|
greg = host: (user host "greg");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"MacBook-Pro.local" = user "aarch64-darwin" "ivr" "gregory.hellings";
|
"MacBook-Pro.local" = user "ivr" "gregory.hellings";
|
||||||
"MacBook-Prolocal.local" = user "aarch64-darwin" "ivr" "gregory.hellings";
|
"MacBook-Prolocal.local" = user "ivr" "gregory.hellings";
|
||||||
genesis = greg "genesis";
|
genesis = greg "genesis";
|
||||||
exodus = greg "exodus";
|
exodus = greg "exodus";
|
||||||
zeke = greg "zeke";
|
zeke = greg "zeke";
|
||||||
|
|||||||
@@ -60,6 +60,12 @@
|
|||||||
"system": "x86_64-linux",
|
"system": "x86_64-linux",
|
||||||
"tags": ["public", "server"]
|
"tags": ["public", "server"]
|
||||||
},
|
},
|
||||||
|
"MacBook-Pro.local": {
|
||||||
|
"system": "aarc64-darwin"
|
||||||
|
},
|
||||||
|
"MacBook-Prolocal.local": {
|
||||||
|
"system": "aarc64-darwin"
|
||||||
|
},
|
||||||
"nas1": {
|
"nas1": {
|
||||||
"ip": "10.42.1.14",
|
"ip": "10.42.1.14",
|
||||||
"ts": "100.114.187.61"
|
"ts": "100.114.187.61"
|
||||||
|
|||||||
Reference in New Issue
Block a user