nixpkgs/nixos/modules/programs/partition-manager.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
594 B
Nix
Raw Normal View History

2021-02-22 14:35:43 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.programs.partition-manager;
in {
meta.maintainers = [ lib.maintainers.oxalica ];
2021-02-22 14:35:43 +00:00
options = {
programs.partition-manager = {
enable = lib.mkEnableOption "KDE Partition Manager";
package = lib.mkPackageOption pkgs [ "libsForQt5" "partitionmanager" ] { };
};
2021-02-22 14:35:43 +00:00
};
config = lib.mkIf config.programs.partition-manager.enable {
services.dbus.packages = [ cfg.package.kpmcore ];
2021-02-22 14:35:43 +00:00
# `kpmcore` need to be installed to pull in polkit actions.
environment.systemPackages = [ cfg.package.kpmcore cfg.package ];
2021-02-22 14:35:43 +00:00
};
}