Files
nixy/nixos/tailscale.nix
2025-03-24 13:18:55 +01:00

17 lines
402 B
Nix

{ 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; };
}