improvements

This commit is contained in:
Henri Dohmen 2025-12-30 20:58:52 +01:00
parent 91def25bca
commit be09397818
Signed by: hd
GPG key ID: AB79213B044674AE
6 changed files with 70 additions and 54 deletions

View file

@ -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