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