e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
19 lines
527 B
Nix
19 lines
527 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
meta.maintainers = [ maintainers.oxalica ];
|
|
|
|
###### interface
|
|
options = {
|
|
programs.partition-manager.enable = mkEnableOption (lib.mdDoc "KDE Partition Manager");
|
|
};
|
|
|
|
###### 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.libsForQt5.partitionmanager ];
|
|
};
|
|
}
|