Split out hypridle home service into its service file.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
inputs.hyprpanel.homeManagerModules.hyprpanel
|
||||
./services/arrpc.nix
|
||||
./services/fluidsynth.nix
|
||||
./services/hypridle.nix
|
||||
];
|
||||
|
||||
|
||||
@@ -280,26 +281,6 @@
|
||||
|
||||
};
|
||||
|
||||
services = {
|
||||
hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
#before_sleep_cmd = "loginctl lock-session";
|
||||
#after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 300;
|
||||
on-timeout = "loginctl lock-session";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
# Allow home-manager to configure hyprland
|
||||
enable = true;
|
||||
|
||||
17
nodes/hosts/common/home/jay/services/hypridle.nix
Normal file
17
nodes/hosts/common/home/jay/services/hypridle.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ pkgs, ...}: {
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 300;
|
||||
on-timeout = "loginctl lock-session";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user