mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
add service for lock
This commit is contained in:
parent
544216f83f
commit
ec747a04e8
1 changed files with 11 additions and 0 deletions
|
@ -17,6 +17,17 @@
|
|||
};
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.screen-locker = {
|
||||
wantedBy = ["sleep.target"];
|
||||
description = "Lock the screen using a custom lock script";
|
||||
before = ["suspend.target"];
|
||||
serviceConfig = {
|
||||
User = "daylin";
|
||||
Type = "forking";
|
||||
Environment = "DISPLAY=:0";
|
||||
ExecStart = "${lock}/bin/lock";
|
||||
};
|
||||
};
|
||||
security.pam.services.swaylock = {};
|
||||
# programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.default;
|
||||
# Optional, hint electron apps to use wayland:
|
||||
|
|
Loading…
Reference in a new issue