commit 4f9e82c1644fee1ecd316819dfa67c3fae0aeef4
parent c3fc3b77500280d48ec326ba2d6530bdaf855498
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 17:10:01 +0100
parent c3fc3b77500280d48ec326ba2d6530bdaf855498
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 17:10:01 +0100
programs/ddcutil: add program
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/configurations/programs/ddcutil.nix b/configurations/programs/ddcutil.nix @@ -0,0 +1,19 @@ +{ pkgs, lib, ... }: + +{ + boot.kernelModules = [ "i2c-dev" ]; + + security.sudo.extraRules= [ + { users = [ "leah" ]; + commands = [ + { command = "${pkgs.ddcutil}/bin/ddcutil" ; + options= [ "NOPASSWD" ]; + } + ]; + } + ]; + + home-manager.users.leah = { + home.packages = [ pkgs.ddcutil ]; + }; +}