From d79689fd552bee97319568c9889fb876f436001e Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Tue, 2 Dec 2025 18:10:56 +0100 Subject: [PATCH] feat: sudoers for homebridge --- flake.lock | 8 ++++---- hosts/saberofxebec/homebridge.nix | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 9ecb501..5d79138 100644 --- a/flake.lock +++ b/flake.lock @@ -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" } diff --git a/hosts/saberofxebec/homebridge.nix b/hosts/saberofxebec/homebridge.nix index 61fc6f6..48e2bb6 100644 --- a/hosts/saberofxebec/homebridge.nix +++ b/hosts/saberofxebec/homebridge.nix @@ -15,4 +15,20 @@ tls internal ''; }; + + security.sudo = { + enable = true; + + extraRules = [ + { + users = [ "homebridge" ]; + commands = [ + { + command = "ALL"; + options = [ "NOPASSWD" ]; + } + ]; + } + ]; + }; }