fix(hypr): make sure hypridle runs
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
1e448f8ae2
commit
4da31089e7
1 changed files with 10 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib) mkIf optionals;
|
||||
inherit (config.vars) mainUser;
|
||||
|
||||
isLaptop = config.services.logind.lidSwitch == "lock";
|
||||
|
@ -36,14 +36,19 @@ in {
|
|||
|
||||
services.hypridle = mkIf isLaptop {
|
||||
enable = true;
|
||||
package = hypridle.packages.${pkgs.system}.default;
|
||||
settings.general.lock_cmd = "${lockPkg}/bin/lock";
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
exec-once = [
|
||||
exec-once =
|
||||
[
|
||||
"gnome-keyring-daemon --start --components=secrets"
|
||||
"${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
|
||||
]
|
||||
++ optionals isLaptop [
|
||||
"systemctl --user restart hypridle"
|
||||
];
|
||||
|
||||
windowrule = [
|
||||
|
|
Loading…
Reference in a new issue