mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
run tailscale without password
This commit is contained in:
@@ -1 +1,16 @@
|
||||
{ services.tailscale = { enable = true; }; }
|
||||
{ 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; };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user