2021-03-19 17:17:44 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
meta.maintainers = [ maintainers.oxalica ];
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
options = {
|
2022-09-09 14:08:57 +00:00
|
|
|
programs.partition-manager.enable = mkEnableOption (lib.mdDoc "KDE Partition Manager");
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.programs.partition-manager.enable {
|
|
|
|
services.dbus.packages = [ pkgs.libsForQt5.kpmcore ];
|
|
|
|
# `kpmcore` need to be installed to pull in polkit actions.
|
2024-01-13 08:15:51 +00:00
|
|
|
environment.systemPackages = [ pkgs.libsForQt5.kpmcore pkgs.libsForQt5.partitionmanager ];
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
}
|