improvements
This commit is contained in:
parent
91def25bca
commit
be09397818
6 changed files with 70 additions and 54 deletions
|
|
@ -8,19 +8,23 @@ let
|
|||
var = outputs;
|
||||
};
|
||||
load-var = x: import x inputs';
|
||||
|
||||
# watch out for cycles
|
||||
outputs = rec {
|
||||
"lan-dns" = load-var ./lan-dns.nix;
|
||||
"ssh-keys" = load-var ./ssh-keys.nix;
|
||||
"wg" = load-var ./wg.nix;
|
||||
"syncthing" = load-var ./syncthing.nix;
|
||||
desktops = [
|
||||
# We list the hosts here manually instead of getting them from the flake.
|
||||
# This way, var can be used standalone
|
||||
nixos-desktops = [
|
||||
"c2"
|
||||
"fw"
|
||||
"solo"
|
||||
];
|
||||
servers = [ "roam" ];
|
||||
clients = desktops ++ servers;
|
||||
nixos-servers = [ "roam" ];
|
||||
nixos-hosts = nixos-desktops ++ nixos-servers;
|
||||
|
||||
"lan-dns" = load-var ./lan-dns.nix;
|
||||
"ssh-keys" = load-var ./ssh-keys.nix;
|
||||
"wg" = load-var ./wg.nix;
|
||||
"syncthing" = load-var ./syncthing.nix;
|
||||
};
|
||||
in
|
||||
outputs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue