tailscale: move to custom module

This commit is contained in:
Aly Raffauf 2024-04-30 14:53:17 -04:00
parent af5e52bb28
commit 17bb8bc596
8 changed files with 23 additions and 2 deletions

View file

@ -53,6 +53,7 @@
};
services = {
syncthing.enable = true;
tailscale.enable = true;
};
};

View file

@ -67,6 +67,7 @@ in {
syncMusic = true;
syncMusicPath = "${mediaDirectory}/Music";
};
tailscale.enable = true;
};
system = {
plymouth.enable = true;

View file

@ -49,6 +49,7 @@
services = {
flatpak.enable = true;
syncthing.enable = true;
tailscale.enable = true;
};
};

View file

@ -97,6 +97,7 @@ in {
};
services = {
syncthing.enable = true;
tailscale.enable = true;
};
};

View file

@ -72,6 +72,7 @@
};
services = {
syncthing.enable = true;
tailscale.enable = true;
};
};

View file

@ -4,5 +4,5 @@
config,
...
}: {
imports = [./binaryCache ./flatpak ./ollama ./syncthing];
imports = [./binaryCache ./flatpak ./ollama ./syncthing ./tailscale];
}

View file

@ -0,0 +1,17 @@
{
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.services.tailscale.enable = lib.mkEnableOption "Enable Tailscale";
};
config = lib.mkIf config.alyraffauf.services.tailscale.enable {
services.tailscale = {
enable = true;
openFirewall = true;
};
};
}

View file

@ -101,7 +101,6 @@
openFirewall = true;
};
printing.enable = true;
tailscale.enable = true;
};
security = {