anchor.diff:      (mkIf cfg.enable {
   
         # Seed our configuration into nixos-generate-config
  -      system.nixos-generate-config.desktopConfiguration = [''
  -        # Enable the Plasma 5 Desktop Environment.
  -        services.xserver.displayManager.sddm.enable = true;
  -        services.xserver.desktopManager.plasma5.enable = true;
  -      ''];
  +      system.nixos-generate-config.desktopConfiguration = [
  +        ''
  +          # Enable the Plasma 5 Desktop Environment.
  +          services.xserver.displayManager.sddm.enable = true;
  +          services.xserver.desktopManager.plasma5.enable = true;
  +        ''
  +      ];
   
         services.xserver.displayManager.sessionPackages = [ pkgs.libsForQt5.plasma5.plasma-workspace ];
   
         security.wrappers = {
           kcheckpass =
  -          { setuid = true;
  +          {
  +            setuid = true;
               owner = "root";
               group = "root";
  -            source = "${lib.getBin libsForQt5.kscreenlocker}/libexec/kcheckpass";
  +            source = "${getBin libsForQt5.kscreenlocker}/libexec/kcheckpass";
             };
           start_kdeinit =
  -          { setuid = true;
  +          {
  +            setuid = true;
               owner = "root";
               group = "root";
  -            source = "${lib.getBin libsForQt5.kinit}/libexec/kf5/start_kdeinit";
  +            source = "${getBin libsForQt5.kinit}/libexec/kf5/start_kdeinit";
             };
           kwin_wayland =
  -          { owner = "root";
  +          {
  +            owner = "root";
               group = "root";
               capabilities = "cap_sys_nice+ep";
  -            source = "${lib.getBin plasma5.kwin}/bin/kwin_wayland";
  +            source = "${getBin plasma5.kwin}/bin/kwin_wayland";
             };
         };
   
  
positive.code:       security.pam.services.lightdm.enableKwallet = true;
        security.pam.services.sddm.enableKwallet = true;
  
        xdg.portal.enable = true;
        xdg.portal.extraPortals = [ plasma5.xdg-desktop-portal-kde ];
  
  
negative.code: in
  
  {
    options.services.xserver.desktopManager.plasma5 = {
      enable = mkOption {
        type = types.bool;
        default = false;
        description = "Enable the Plasma 5 (KDE 5) desktop environment.";
      };
  
      phononBackend = mkOption {
        type = types.enum [ "gstreamer" "vlc" ];
        default = "gstreamer";
        example = "vlc";
        description = "Phonon audio backend to install.";
      };
  
      supportDDC = mkOption {
        type = types.bool;
        default = false;
        description = ''
          Support setting monitor brightness via DDC.
          </para>
          <para>
          This is not needed for controlling brightness of the internal monitor
          of a laptop and as it is considered experimental by upstream, it is
          disabled by default.
        '';
      };
  
      useQtScaling = mkOption {
        type = types.bool;
        default = false;
        description = "Enable HiDPI scaling in Qt.";
      };
  
      runUsingSystemd = mkOption {
        description = "Use systemd to manage the Plasma session";
        type = types.bool;
        default = false;
      };
    };
  
    imports = [
  