From 35a467eab392ca11408acfcb9eefa142830a855c Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Mon, 16 Sep 2024 10:12:21 +0200 Subject: [PATCH] modules(plasma): Add condition append wallpaper engine plugin --- hosts/perso-desktop/configuration.nix | 5 ++++- modules/system/desktop/plasma/default.nix | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hosts/perso-desktop/configuration.nix b/hosts/perso-desktop/configuration.nix index 8a538d4..99b3ba2 100644 --- a/hosts/perso-desktop/configuration.nix +++ b/hosts/perso-desktop/configuration.nix @@ -25,7 +25,10 @@ }; desktop = { - plasma.enable = true; + plasma = { + enable = true; + enableWallpaperEngine = true; + }; }; hardware = { diff --git a/modules/system/desktop/plasma/default.nix b/modules/system/desktop/plasma/default.nix index 0dad1a4..0cc1939 100644 --- a/modules/system/desktop/plasma/default.nix +++ b/modules/system/desktop/plasma/default.nix @@ -13,6 +13,10 @@ in enable = mkEnableOption '' Enable plasma with my custom configurations ''; + + enableWallpaperEngine = mkEnableOption '' + Enable wallpaper engine plugin for plasma + ''; }; config = mkIf cfg.enable { # Enable the X11 windowing system. @@ -32,7 +36,7 @@ in discover kgpg yakuake - + ] ++ lib.optionals cfg.enableWallpaperEngine [ ### wallpaper-engine-plugin (callPackage "${nixpkgsPr}/pkgs/kde/third-party/wallpaper-engine-plugin/default.nix" {}) qtmultimedia