works like this
This commit is contained in:
parent
bff68c0cb2
commit
cd1c6eb934
2 changed files with 2 additions and 11 deletions
|
@ -20,6 +20,7 @@
|
|||
home.packages = with pkgs; [
|
||||
brightnessctl
|
||||
swaybg
|
||||
swayidle
|
||||
];
|
||||
|
||||
programs.niri = {
|
||||
|
@ -43,16 +44,6 @@
|
|||
settings = import ./swaylock.conf.nix { lib = lib; config = config; };
|
||||
};
|
||||
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
events = [
|
||||
{ event = "before-sleep"; command = "swaylock"; }
|
||||
];
|
||||
timeouts = [
|
||||
{ timeout = 5; command = "swaylock"; }
|
||||
];
|
||||
};
|
||||
|
||||
services.mako = {
|
||||
enable = true;
|
||||
defaultTimeout = 5000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue