From ef360099f4c2e4e59e9f9cad75be9fd65ee6a82c Mon Sep 17 00:00:00 2001 From: Linnnus Date: Tue, 29 Oct 2024 19:10:28 +0100 Subject: muhammed: Allow executing 'sudo monner' without password --- hosts/muhammed/configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hosts/muhammed/configuration.nix') 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} -- cgit v1.2.3