lock
This commit is contained in:
@@ -5,6 +5,15 @@
|
|||||||
settings.Login.HandleLidSwitch = "suspend"; # suspend on lid close
|
settings.Login.HandleLidSwitch = "suspend"; # suspend on lid close
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Add the config declaratively
|
||||||
|
environment.etc."hyprlock/config" = {
|
||||||
|
source = pkgs.writeText "hyprlock-config" ''
|
||||||
|
# hyprlock configuration
|
||||||
|
blur = 5
|
||||||
|
timeout = 0
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
systemd.services.hyprlock-pre-suspend = {
|
systemd.services.hyprlock-pre-suspend = {
|
||||||
description = "Lock screen before suspend";
|
description = "Lock screen before suspend";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user