2021-03-19 17:17:44 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
let
|
|
|
|
cfg = config.programs.partition-manager;
|
|
|
|
in {
|
|
|
|
meta.maintainers = [ lib.maintainers.oxalica ];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
options = {
|
2024-04-21 15:54:59 +00:00
|
|
|
programs.partition-manager = {
|
|
|
|
enable = lib.mkEnableOption "KDE Partition Manager";
|
|
|
|
|
|
|
|
package = lib.mkPackageOption pkgs [ "libsForQt5" "partitionmanager" ] { };
|
|
|
|
};
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
config = lib.mkIf config.programs.partition-manager.enable {
|
|
|
|
services.dbus.packages = [ cfg.package.kpmcore ];
|
2021-03-19 17:17:44 +00:00
|
|
|
# `kpmcore` need to be installed to pull in polkit actions.
|
2024-04-21 15:54:59 +00:00
|
|
|
environment.systemPackages = [ cfg.package.kpmcore cfg.package ];
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
}
|