[tailscale] Add module
This commit is contained in:
parent
759ebb3558
commit
7aba583074
3 changed files with 16 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
services = {
|
||||
pipewire.enable = true;
|
||||
tailscale.enable = true;
|
||||
};
|
||||
|
||||
users.tdpeuter.enable = true;
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
./openssh
|
||||
./pipewire
|
||||
./printing
|
||||
./tailscale
|
||||
];
|
||||
}
|
||||
|
|
14
nixos/modules/services/tailscale/default.nix
Normal file
14
nixos/modules/services/tailscale/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue