sway: Add option to enable/disable swayidle

This commit is contained in:
Erwin Boskma 2024-10-02 13:01:42 +02:00
parent dbc235cdbf
commit 594e9524e6
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw
2 changed files with 5 additions and 1 deletions

View file

@ -19,6 +19,9 @@ in
options.eboskma.programs.sway = {
enable = mkEnableOption "sway";
package = mkPackageOption pkgs "sway" { };
swayidle = mkEnableOption "swayidle" // {
default = true;
};
lock-wallpaper = mkOption {
description = "Wallpaper to use for the lockscreen";
@ -334,7 +337,7 @@ in
};
services = {
swayidle = {
swayidle = mkIf cfg.swayidle {
enable = true;
events = [
{

View file

@ -123,6 +123,7 @@ in
sway = {
enable = true;
package = pkgs.sway;
swayidle = false;
lock-wallpaper = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png";
output = {
"DP-1" = {