mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
20 lines
505 B
Nix
20 lines
505 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
meta.maintainers = [ maintainers.oxalica ];
|
|
|
|
###### interface
|
|
options = {
|
|
programs.partition-manager.enable = mkEnableOption "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.partition-manager ];
|
|
};
|
|
}
|