mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
94805a3d21
This also fixes System Settings > Windows Shares complaining about the wrong QT version under Plasma6.
22 lines
606 B
Nix
22 lines
606 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.partition-manager;
|
|
in {
|
|
meta.maintainers = [ lib.maintainers.oxalica ];
|
|
|
|
options = {
|
|
programs.partition-manager = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "KDE Partition Manager");
|
|
|
|
package = lib.mkPackageOption pkgs [ "libsForQt5" "partitionmanager" ] { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.programs.partition-manager.enable {
|
|
services.dbus.packages = [ cfg.package.kpmcore ];
|
|
# `kpmcore` need to be installed to pull in polkit actions.
|
|
environment.systemPackages = [ cfg.package.kpmcore cfg.package ];
|
|
};
|
|
}
|