depot/third_party/nixpkgs/nixos/modules/programs/partition-manager.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

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 ];
};
}