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