feat: add tailscale.
This commit is contained in:
parent
c95df76a56
commit
b2cb59c304
2 changed files with 18 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
./watchdog.nix
|
||||
./general-services.nix
|
||||
./additional-hardware
|
||||
./tailscale.nix
|
||||
];
|
||||
|
||||
crony.bluetooth.enable = lib.mkDefault true;
|
||||
|
@ -40,4 +41,5 @@
|
|||
crony.watchdog.disable = lib.mkDefault true;
|
||||
crony.general-services.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…
Add table
Add a link
Reference in a new issue