Files
nixy/nixos/tailscale.nix
Hadi 0c34239fab improve documentation
Former-commit-id: 0409a4db26
2025-03-26 16:01:34 +01:00

18 lines
494 B
Nix

# Tailscale is a VPN service that makes it easy to connect your devices between each other.
{ config, ... }: {
security.sudo.extraRules = [{
users = [ config.var.username ];
commands = [
{
command = "/etc/profiles/per-user/${config.var.username}/bin/tailscale";
options = [ "NOPASSWD" ];
}
{
command = "/run/current-system/sw/bin/tailscale";
options = [ "NOPASSWD" ];
}
];
}];
services.tailscale = { enable = true; };
}