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

View file

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