nixpkgs/nixos/modules/programs/partition-manager.nix
Sandro Jäckel 94805a3d21
nixos/partition-manager: use qt6 when plasma6 is activated
This also fixes System Settings > Windows Shares complaining about the
wrong QT version under Plasma6.
2024-03-30 14:31:45 +01:00

22 lines
606 B
Nix

{ 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");
package = lib.mkPackageOption pkgs [ "libsForQt5" "partitionmanager" ] { };
};
};
config = lib.mkIf config.programs.partition-manager.enable {
services.dbus.packages = [ cfg.package.kpmcore ];
# `kpmcore` need to be installed to pull in polkit actions.
environment.systemPackages = [ cfg.package.kpmcore cfg.package ];
};
}