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" = {