Updated duo configuration

This commit is contained in:
2024-10-23 15:21:31 -03:00
parent 1612288b51
commit 4315e991ab
5 changed files with 33 additions and 32 deletions

View File

@@ -16,10 +16,10 @@
${builtins.readFile duoScript}
'';
in {
systemd.user.services.watchBacklight = {
systemd.services.watchBacklight = {
description = "synchronize screen brightness";
wantedBy = ["default.target"];
path = [pkgs.inotify-tools];
path = [pkgs.inotify-tools pkgs.sudo];
serviceConfig = {
ExecStart = "${modifiedDuoScript} watch-backlight";
Restart = "always";
@@ -27,7 +27,7 @@ in {
};
};
systemd.user.services.watchDisplays = {
systemd.services.watchDisplays = {
description = "set screens on keyboard event";
wantedBy = ["default.target"];
after = ["graphical-session.target"];
@@ -39,7 +39,7 @@ in {
};
};
systemd.user.services.watchRotation = {
systemd.services.watchRotation = {
description = "rotate screens";
wantedBy = ["default.target"];
after = ["graphical-session.target"];