From 594e9524e63498a0ec3413f836a63faa88147f44 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Wed, 2 Oct 2024 13:01:42 +0200 Subject: [PATCH] sway: Add option to enable/disable swayidle --- home-manager/modules/sway/default.nix | 5 ++++- users/erwin/work.nix | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/sway/default.nix b/home-manager/modules/sway/default.nix index 131e90e..6fa039b 100644 --- a/home-manager/modules/sway/default.nix +++ b/home-manager/modules/sway/default.nix @@ -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 = [ { diff --git a/users/erwin/work.nix b/users/erwin/work.nix index 1d22fbc..a117e77 100644 --- a/users/erwin/work.nix +++ b/users/erwin/work.nix @@ -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" = {