Add Tailscale configuration

This commit is contained in:
Joshua Yuen 2026-06-29 19:06:30 -04:00
parent d3d3edd664
commit 0dc7671926
Signed by: josh
GPG Key ID: 530DA0331EFE99F5
5 changed files with 31 additions and 0 deletions

View File

@ -18,6 +18,7 @@
./services.nix
./stylix.nix
./system.nix
./tailscale.nix
./user.nix
./zsh.nix
];

View File

@ -0,0 +1,14 @@
{
config,
lib,
...
}:
with lib;
let
cfg = config.modules.tailscale;
in
{
config = mkIf cfg.enable {
services.tailscale.enable = true;
};
}

View File

@ -13,6 +13,7 @@
./plasma.nix
./shell.nix
./system.nix
./tailscale.nix
./zsh.nix
];
}

View File

@ -0,0 +1,13 @@
{
lib,
...
}:
with lib;
{
options.modules.tailscale = {
enable = mkEnableOption {
default = false;
description = "Enable Tailscale";
};
};
}

View File

@ -25,4 +25,6 @@
modules.pipewire.enable = true;
modules.discord.enable = true;
modules.tailscale.enable = true;
}