❄️ Dotfiles for our NixOS system configuration.

chore(tailscale): fix client and server enable logic

Chloe afe1e117 62c686d6

Changed files
+6 -6
modules
nixos
networking
+6 -6
modules/nixos/networking/tailscale.nix
···
description = "A list of command-line flags that will be passed to the Tailscale daemon";
};
-
isClient = lib.mkOption {
+
isServer = lib.mkOption {
type = lib.types.bool;
-
default = config.settings.tailscale.enable;
-
description = "Whether this Tailscale instance is a client";
+
default = config.settings.profiles.server.enable;
+
description = "Whether this Tailscale instance is a server/relay node";
};
-
isServer = lib.mkOption {
+
isClient = lib.mkOption {
type = lib.types.bool;
-
default = !config.settings.tailscale.isClient || config.settings.profiles.server.enable;
-
description = "Whether this Tailscale instance is a server/relay node";
+
default = config.settings.tailscale.enable && !config.settings.tailscale.isServer;
+
description = "Whether this Tailscale instance is a client";
};
};
};