feat: sudoers for homebridge

This commit is contained in:
s-prechtl 2025-12-02 18:10:56 +01:00
parent dd3763dd75
commit d79689fd55
2 changed files with 20 additions and 4 deletions

8
flake.lock generated
View file

@ -199,16 +199,16 @@
]
},
"locked": {
"lastModified": 1763992789,
"narHash": "sha256-WHkdBlw6oyxXIra/vQPYLtqY+3G8dUVZM8bEXk0t8x4=",
"lastModified": 1764613336,
"narHash": "sha256-L979az28t/+SXvYw9qhOno5HLlDwkZOpz6LzCLnjmRM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "44831a7eaba4360fb81f2acc5ea6de5fde90aaa3",
"rev": "f3902b5d8767985680875ad86d028371100faeb3",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.05",
"ref": "release-25.11",
"repo": "home-manager",
"type": "github"
}

View file

@ -15,4 +15,20 @@
tls internal
'';
};
security.sudo = {
enable = true;
extraRules = [
{
users = [ "homebridge" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
};
}