mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-13 08:17:31 -08:00
use roles attribute to import config for host
This commit is contained in:
parent
cff0d07665
commit
85d52e311f
@ -19,7 +19,7 @@
|
||||
lib = nixpkgs.lib;
|
||||
in {
|
||||
nixosConfigurations = lib.mapAttrs (hostname: hostConfig:
|
||||
lib.nixosSystem (import ./hosts/${hostname} {
|
||||
lib.nixosSystem (import ./hosts/${hostConfig.role} {
|
||||
inherit lib;
|
||||
inherit system inputs agenix home-manager jovian-nixos nixos-wsl;
|
||||
specialArgs = {
|
||||
|
@ -1,20 +1,26 @@
|
||||
{
|
||||
"kestrel": {
|
||||
"role": "kestrel",
|
||||
"user": "tstarr"
|
||||
},
|
||||
"shivan": {
|
||||
"role": "shivan",
|
||||
"user": "tstarr"
|
||||
},
|
||||
"torus": {
|
||||
"role": "torus",
|
||||
"user": "tstarr"
|
||||
},
|
||||
"bulwark": {
|
||||
"role": "bulwark",
|
||||
"user": "tstarr"
|
||||
},
|
||||
"osprey": {
|
||||
"role": "osprey",
|
||||
"user": "tstarr"
|
||||
},
|
||||
"wsl": {
|
||||
"role": "wsl",
|
||||
"user": "user"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user