Jump to content

KDE: Difference between revisions

Only optional packages can be excluded. Thanks to https://discourse.nixos.org/t/cant-remove-kwallet/29873/2
imported>Onny
(Add section on theme configuration)
imported>Gileri
(Only optional packages can be excluded. Thanks to https://discourse.nixos.org/t/cant-remove-kwallet/29873/2)
Line 12: Line 12:


=== Excluding some KDE Plasma applications from the default install ===
=== Excluding some KDE Plasma applications from the default install ===
Not all applications that come pre-installed with the KDE Plasma desktop environment are desirable for everyone to have on their machines. There's a way to edit configuration.nix to exclude these kinds of packages, for example as follows:
Not all applications that come pre-installed with the KDE Plasma desktop environment are desirable for everyone to have on their machines. There's a way to edit configuration.nix to exclude some [https://github.com/NixOS/nixpkgs/blob/nixos-23.11/nixos/modules/services/x11/desktop-managers/plasma5.nix#L275-L284 optional packages], for example as follows:


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
   elisa
   plasma-browser-integration
   gwenview
   konsole
  okular
   oxygen
   oxygen
  khelpcenter
  konsole
  plasma-browser-integration
  print-manager
];
];
</syntaxHighlight>
</syntaxHighlight>
Anonymous user