nixos/partition-manager: remove with with lib, cleanup
This commit is contained in:
parent
5919d4081e
commit
26538d4700
1 changed files with 3 additions and 7 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue