summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-28 15:01:44 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-28 15:01:44 +0100
commit946164e2b3f7631289814c8f462f2cc39a80a7b9 (patch)
tree6f18163d191e28f788253af8b521e3098037fb01 /accounts/gkleen@sif
parent96f1e073cd1aa6b7579256cbb6d42fa604a551b5 (diff)
downloadnixos-946164e2b3f7631289814c8f462f2cc39a80a7b9.tar
nixos-946164e2b3f7631289814c8f462f2cc39a80a7b9.tar.gz
nixos-946164e2b3f7631289814c8f462f2cc39a80a7b9.tar.bz2
nixos-946164e2b3f7631289814c8f462f2cc39a80a7b9.tar.xz
nixos-946164e2b3f7631289814c8f462f2cc39a80a7b9.zip
...
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/default.nix7
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";
84in { 84in {
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 };