diff options
author | K900 <me@0upti.me> | 2024-03-30 17:27:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-30 17:27:49 +0300 |
commit | ff964811c9a2c0938328427dd47dfc71766435fa (patch) | |
tree | c98d95312b597f60da10a9edef660bdc263c990a /nixos/modules/programs | |
parent | 7773b0aa5e0fd51aea9cebcc5d1950bd4f95d12c (diff) | |
parent | 94805a3d21e407908ebf1d6de7d21028f01776db (diff) |
Merge pull request #300234 from SuperSandro2000/partition-plasma6
nixos/partition-manager: use qt6 when plasma6 is activated p
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/partition-manager.nix | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/nixos/modules/programs/partition-manager.nix b/nixos/modules/programs/partition-manager.nix index cf0491ff028fc..63b637f9952b8 100644 --- a/nixos/modules/programs/partition-manager.nix +++ b/nixos/modules/programs/partition-manager.nix @@ -1,19 +1,21 @@ { config, lib, pkgs, ... }: -with lib; +let + cfg = config.programs.partition-manager; +in { + meta.maintainers = [ lib.maintainers.oxalica ]; -{ - meta.maintainers = [ 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"); + + package = lib.mkPackageOption pkgs [ "libsForQt5" "partitionmanager" ] { }; + }; }; - ###### implementation - config = mkIf config.programs.partition-manager.enable { - services.dbus.packages = [ pkgs.libsForQt5.kpmcore ]; + 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 = [ pkgs.libsForQt5.kpmcore pkgs.libsForQt5.partitionmanager ]; + environment.systemPackages = [ cfg.package.kpmcore cfg.package ]; }; } |