[tailscale] Add module

This commit is contained in:
Tibo De Peuter 2023-10-28 11:14:50 +02:00
parent 05850a53ae
commit eef9742f43
3 changed files with 16 additions and 0 deletions

View file

@ -19,6 +19,7 @@
services = {
pipewire.enable = true;
tailscale.enable = true;
};
users.tdpeuter.enable = true;

View file

@ -4,5 +4,6 @@
./openssh
./pipewire
./printing
./tailscale
];
}

View file

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.services.tailscale;
in {
options.sisyphus.services.tailscale.enable = lib.mkEnableOption "Tailscale";
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
useRoutingFeatures = "client";
};
};
}