0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/partition-manager: use qt6 when plasma6 is activated

This also fixes System Settings > Windows Shares complaining about the
wrong QT version under Plasma6.
This commit is contained in:
Sandro Jäckel 2024-03-29 15:33:46 +01:00
parent 26538d4700
commit 94805a3d21
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
4 changed files with 20 additions and 5 deletions

View file

@ -1,15 +1,21 @@
{ config, lib, pkgs, ... }:
{
let
cfg = config.programs.partition-manager;
in {
meta.maintainers = [ lib.maintainers.oxalica ];
options = {
programs.partition-manager.enable = lib.mkEnableOption (lib.mdDoc "KDE Partition Manager");
programs.partition-manager = {
enable = lib.mkEnableOption (lib.mdDoc "KDE Partition Manager");
package = lib.mkPackageOption pkgs [ "libsForQt5" "partitionmanager" ] { };
};
};
config = lib.mkIf config.programs.partition-manager.enable {
services.dbus.packages = [ pkgs.libsForQt5.kpmcore ];
services.dbus.packages = [ cfg.package.kpmcore ];
# `kpmcore` need to be installed to pull in polkit actions.
environment.systemPackages = [ pkgs.libsForQt5.kpmcore pkgs.libsForQt5.partitionmanager ];
environment.systemPackages = [ cfg.package.kpmcore cfg.package ];
};
}