1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6 meta.maintainers = [ maintainers.oxalica ];
7
8 ###### interface
9 options = {
10 programs.partition-manager.enable = mkEnableOption (lib.mdDoc "KDE Partition Manager");
11 };
12
13 ###### implementation
14 config = mkIf config.programs.partition-manager.enable {
15 services.dbus.packages = [ pkgs.libsForQt5.kpmcore ];
16 # `kpmcore` need to be installed to pull in polkit actions.
17 environment.systemPackages = [ pkgs.libsForQt5.kpmcore pkgs.partition-manager ];
18 };
19}