{ config, lib, namespace, osConfig ? {}, ... }: let cfg = config.${namespace}.desktop.plasma; osCfg = osConfig.${namespace}.desktop.plasma or { enable = false; }; in { options.${namespace}.desktop.plasma = { }; config = mkIf osCfg.enable { programs.plasma = { enable = true; immutableByDefault = true; windows.allowWindowsToRememberPositions = true; session = { general.askForConfirmationOnLogout = false; sessionRestore.restoreOpenApplicationsOnLogin = "onLastLogout"; }; workspace = { clickItemTo = "select"; colorScheme = "EverforestDark"; wallpaper = config.stylix.image; }; spectacle.shortcuts = { captureRectangularRegion = "Meta+Shift+S"; }; kscreenlocker = { autoLock = false; lockOnResume = false; lockOnStartup = false; appearance = { alwaysShowClock = true; showMediaControls = true; }; }; configFile = { baloofilerc."Basic Settings"."Indexing-Enabled" = false; kdeglobals = { General = { # enable font antialiasing XftAntialias = true; XftHintStyle = "hintslight"; XftSubPixel = "rgb"; }; }; kwalletrc = { Wallet.Enabled = false; }; plasmarc = { General = { RaiseMaximumVolume = true; VolumeStep = 2; }; }; kcminputrc = { Keyboard.NumLock.value = 0; }; }; }; }; }