2021-02-22 15:35:43 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
meta.maintainers = [ maintainers.oxalica ];
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
options = {
|
2022-08-28 21:18:44 +02:00
|
|
|
programs.partition-manager.enable = mkEnableOption (lib.mdDoc "KDE Partition Manager");
|
2021-02-22 15:35:43 +01: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.
|
|
|
|
environment.systemPackages = [ pkgs.libsForQt5.kpmcore pkgs.partition-manager ];
|
|
|
|
};
|
|
|
|
}
|