about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/programs/partition-manager.nix
blob: cf0491ff028fc6e7e46538f903167ab93d070049 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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 ];
  };
}