diff options
author | Linnnus <[email protected]> | 2024-10-29 19:10:28 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-10-29 19:10:28 +0100 |
commit | ef360099f4c2e4e59e9f9cad75be9fd65ee6a82c (patch) | |
tree | c20fb964874fe745ecedfd8745c879609884c0f2 /hosts/muhammed/configuration.nix | |
parent | 090c4121e805b9eff89b4fc9fc337b320a512c07 (diff) |
muhammed: Allow executing 'sudo monner' without password
Diffstat (limited to 'hosts/muhammed/configuration.nix')
-rw-r--r-- | hosts/muhammed/configuration.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hosts/muhammed/configuration.nix b/hosts/muhammed/configuration.nix index 04fd55e..b5d1aa8 100644 --- a/hosts/muhammed/configuration.nix +++ b/hosts/muhammed/configuration.nix @@ -1,5 +1,9 @@ # This file contains the configuration for my Macbook Pro. -{flakeInputs, ...}: { +{ + flakeInputs, + config, + ... +}: { imports = [ ./home ./linux-builder @@ -33,6 +37,7 @@ environment.etc."sudoers.d/10-unauthenticated-commands".text = let commands = [ "/usr/bin/pmset" + "${config.users.users.linus.home}/.local/bin/monner" # TODO: We should really package this. ]; in '' %admin ALL=(ALL:ALL) NOPASSWD: ${builtins.concatStringsSep ", " commands} |