Nix configurations for my personal machines (Linux & macOS)

refactor: split tailscale into own module

ovyerus.com bb5eb9d5 cf995f67

verified
Changed files
+14 -6
modules
-6
modules/networking.nix
···
# dnsovertls = "trues";
};
-
services.tailscale = {
-
enable = true;
-
openFirewall = true;
-
useRoutingFeatures = "client";
-
};
-
# services.mullvad-vpn.enable = true;
# services.mullvad-vpn.package = pkgs.mullvad-vpn;
+14
modules/tailscale.nix
···
+
{delib, ...}:
+
delib.module {
+
name = "tailscale";
+
+
options = delib.singleEnableOption true;
+
+
nixos.ifEnabled.services.tailscale = {
+
enable = true;
+
openFirewall = true;
+
useRoutingFeatures = "client";
+
};
+
+
# home.ifEnabled.services.tailscale-systray.enable = true;
+
}