move services
This commit is contained in:
parent
8788bafd01
commit
4ab8147bd7
8 changed files with 11 additions and 6 deletions
|
|
@ -1,32 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
myModules.enableTailscale = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable Tailscale VPN";
|
||||
};
|
||||
};
|
||||
|
||||
# i have 4 machines, 2 of them are always at home
|
||||
# pochita (raspberry pi 5) and ymir (desktop)
|
||||
# pochita will be on all the time, ymir can be wake on lan
|
||||
|
||||
# and i have a laptop named tartarus
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.myModules.enableTailscale {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
port = 51513;
|
||||
};
|
||||
|
||||
networking.firewall.allowedUDPPorts = [config.services.tailscale.port];
|
||||
environment.systemPackages = [pkgs.tailscale];
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue