nixos/partition-manager: remove with with lib, cleanup

This commit is contained in:
Sandro Jäckel 2024-03-29 15:32:40 +01:00
parent 5919d4081e
commit 26538d4700
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,17 +1,13 @@
{ config, lib, pkgs, ... }:
with lib;
{
meta.maintainers = [ maintainers.oxalica ];
meta.maintainers = [ lib.maintainers.oxalica ];
###### interface
options = {
programs.partition-manager.enable = mkEnableOption (lib.mdDoc "KDE Partition Manager");
programs.partition-manager.enable = lib.mkEnableOption (lib.mdDoc "KDE Partition Manager");
};
###### implementation
config = mkIf config.programs.partition-manager.enable {
config = lib.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 ];