diff --git a/modules/workspace.nix b/modules/workspace.nix index 5f51e6ed..d1127e0c 100644 --- a/modules/workspace.nix +++ b/modules/workspace.nix @@ -463,20 +463,16 @@ in ${ lib.optionalString (cfg.workspace.wallpaperBackground != null) ''desktop.writeConfig("${ - if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then + if cfg.workspace.wallpaperBackground.blur != null then "Blur" - else if - cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null - then + else if cfg.workspace.wallpaperBackground.blur != null then "Color" else throw "plasma-manager: wallpaperBackground is not null and has no option set" }", "${ - if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then + if cfg.workspace.wallpaperBackground.blur != null then lib.boolToString cfg.workspace.wallpaperBackground.blur - else if - cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null - then + else if cfg.workspace.wallpaperBackground.color != null then cfg.workspace.wallpaperBackground.color else throw "plasma-manager: wallpaperBackground is not null and has no option set" @@ -509,20 +505,16 @@ in ${ lib.optionalString (cfg.workspace.wallpaperBackground != null) ''desktop.writeConfig("${ - if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then + if cfg.workspace.wallpaperBackground.blur != null then "Blur" - else if - cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null - then + else if cfg.workspace.wallpaperBackground.blur != null then "Color" else throw "plasma-manager: wallpaperBackground is not null and has no option set" }", "${ - if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then + if cfg.workspace.wallpaperBackground.blur != null then lib.boolToString cfg.workspace.wallpaperBackground.blur - else if - cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null - then + else if cfg.workspace.wallpaperBackground.color != null then cfg.workspace.wallpaperBackground.color else throw "plasma-manager: wallpaperBackground is not null and has no option set" @@ -576,20 +568,16 @@ in ${ lib.optionalString (cfg.workspace.wallpaperBackground != null) ''desktop.writeConfig("${ - if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then + if cfg.workspace.wallpaperBackground.blur != null then "Blur" - else if - cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null - then + else if cfg.workspace.wallpaperBackground.blur != null then "Color" else throw "plasma-manager: wallpaperBackground is not null and has no option set" }", "${ - if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then + if cfg.workspace.wallpaperBackground.blur != null then lib.boolToString cfg.workspace.wallpaperBackground.blur - else if - cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null - then + else if cfg.workspace.wallpaperBackground.color != null then cfg.workspace.wallpaperBackground.color else throw "plasma-manager: wallpaperBackground is not null and has no option set"