diff options
Diffstat (limited to 'accounts/gkleen@sif/default.nix')
-rw-r--r-- | accounts/gkleen@sif/default.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 6e6e98f7..58cfb425 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix | |||
@@ -80,7 +80,7 @@ let | |||
80 | ]; | 80 | ]; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | lockCommand = "${config.systemd.package}/bin/systemctl --user start gtklock.service"; | 83 | lockCommand = "${lib.getExe' config.systemd.package "systemctl"} --user start gtklock.service"; |
84 | in { | 84 | in { |
85 | imports = with flake.nixosModules.userProfiles.${userName}; [ | 85 | imports = with flake.nixosModules.userProfiles.${userName}; [ |
86 | mpv yt-dlp (args: import ./xcompose.nix (inputs // args)) | 86 | mpv yt-dlp (args: import ./xcompose.nix (inputs // args)) |
@@ -359,16 +359,13 @@ in { | |||
359 | enable = true; | 359 | enable = true; |
360 | events = [ | 360 | events = [ |
361 | { event = "before-sleep"; command = lockCommand; } | 361 | { event = "before-sleep"; command = lockCommand; } |
362 | # { event = "after-resume"; command = "${cfg.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on"; } | ||
363 | { event = "lock"; command = lockCommand; } | 362 | { event = "lock"; command = lockCommand; } |
364 | ]; | 363 | ]; |
365 | timeouts = [ | 364 | timeouts = [ |
366 | # { timeout = 300; | ||
367 | # command = "${cfg.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off"; | ||
368 | # } | ||
369 | { timeout = 330; command = lockCommand; } | 365 | { timeout = 330; command = lockCommand; } |
370 | ]; | 366 | ]; |
371 | extraArgs = [ | 367 | extraArgs = [ |
368 | "-w" | ||
372 | "idlehint" "30" | 369 | "idlehint" "30" |
373 | ]; | 370 | ]; |
374 | }; | 371 | }; |