mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
18 lines
494 B
Nix
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; };
|
|
}
|