feat: add tailscale.
This commit is contained in:
parent
c95df76a56
commit
b2cb59c304
@ -19,6 +19,7 @@
|
|||||||
./watchdog.nix
|
./watchdog.nix
|
||||||
./general-services.nix
|
./general-services.nix
|
||||||
./additional-hardware
|
./additional-hardware
|
||||||
|
./tailscale.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
crony.bluetooth.enable = lib.mkDefault true;
|
crony.bluetooth.enable = lib.mkDefault true;
|
||||||
@ -40,4 +41,5 @@
|
|||||||
crony.watchdog.disable = lib.mkDefault true;
|
crony.watchdog.disable = lib.mkDefault true;
|
||||||
crony.general-services.enable = lib.mkDefault true;
|
crony.general-services.enable = lib.mkDefault true;
|
||||||
crony.additional-hardware.enable = lib.mkDefault true;
|
crony.additional-hardware.enable = lib.mkDefault true;
|
||||||
|
crony.tailscale.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
16
modules/linux/nixos/tailscale.nix
Normal file
16
modules/linux/nixos/tailscale.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
crony.tailscale.enable = lib.mkEnableOption "Enable tailscale";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.crony.tailscale.enable {
|
||||||
|
services.tailscale = {
|
||||||
|
enable = true;
|
||||||
|
useRoutingFeatures = "both";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user