2021-02-22 14:35:43 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2024-03-29 14:33:46 +00:00
|
|
|
let
|
|
|
|
cfg = config.programs.partition-manager;
|
|
|
|
in {
|
2024-03-29 14:32:40 +00:00
|
|
|
meta.maintainers = [ lib.maintainers.oxalica ];
|
2021-02-22 14:35:43 +00:00
|
|
|
|
|
|
|
options = {
|
2024-03-29 14:33:46 +00:00
|
|
|
programs.partition-manager = {
|
|
|
|
enable = lib.mkEnableOption "KDE Partition Manager";
|
|
|
|
|
|
|
|
package = lib.mkPackageOption pkgs [ "libsForQt5" "partitionmanager" ] { };
|
|
|
|
};
|
2021-02-22 14:35:43 +00:00
|
|
|
};
|
|
|
|
|
2024-03-29 14:32:40 +00:00
|
|
|
config = lib.mkIf config.programs.partition-manager.enable {
|
2024-03-29 14:33:46 +00:00
|
|
|
services.dbus.packages = [ cfg.package.kpmcore ];
|
2021-02-22 14:35:43 +00:00
|
|
|
# `kpmcore` need to be installed to pull in polkit actions.
|
2024-03-29 14:33:46 +00:00
|
|
|
environment.systemPackages = [ cfg.package.kpmcore cfg.package ];
|
2021-02-22 14:35:43 +00:00
|
|
|
};
|
|
|
|
}
|