mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Only set a suspend timer on the laptop
This commit is contained in:
parent
02d107973a
commit
15717a9837
1 changed files with 10 additions and 0 deletions
|
|
@ -11,5 +11,15 @@
|
|||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings.monitor = "eDP-1,1920x1080@60,0x0,1";
|
||||
|
||||
services.hypridle = {
|
||||
beforeSleepCmd = "loginctl lock-session";
|
||||
listeners = [
|
||||
{
|
||||
timeout = 1800;
|
||||
onTimeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue