587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
21 lines
594 B
Nix
21 lines
594 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.partition-manager;
|
|
in {
|
|
meta.maintainers = [ lib.maintainers.oxalica ];
|
|
|
|
options = {
|
|
programs.partition-manager = {
|
|
enable = lib.mkEnableOption "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 ];
|
|
};
|
|
}
|