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 = {
|
2024-04-13 12:54:15 +00:00
|
|
|
enable = lib.mkEnableOption "KDE Partition Manager";
|
2024-03-29 14:33:46 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|