sisyphus/nixos/modules/services/tailscale/default.nix

16 lines
351 B
Nix
Raw Permalink Normal View History

2023-11-02 17:04:04 +01:00
{ config, lib, pkgs, pkgs-unstable, ... }:
2023-10-28 11:14:50 +02:00
let
cfg = config.sisyphus.services.tailscale;
in {
options.sisyphus.services.tailscale.enable = lib.mkEnableOption "Tailscale";
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
2023-11-02 17:04:04 +01:00
package = pkgs-unstable.tailscale;
2023-10-28 11:14:50 +02:00
useRoutingFeatures = "client";
};
};
}