diff options
author | Bobby Rong <rjl931189261@126.com> | 2024-03-13 21:29:43 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-03-14 23:34:10 +0800 |
commit | b45faa98347c82d4744d578e34bb72949322c97d (patch) | |
tree | ae0f2fb0fb09f5004d6b82c838b96d6824645b55 /nixos | |
parent | 9e31001c4b6f77eef7697267c50ef8639462ca73 (diff) |
nixos/mate: Add extraPanelApplets, extraCajaExtensions option
Hopefully this is more user-friendly.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/mate.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/mate.nix b/nixos/modules/services/x11/desktop-managers/mate.nix index 2eec827e25854..0aa96143994d6 100644 --- a/nixos/modules/services/x11/desktop-managers/mate.nix +++ b/nixos/modules/services/x11/desktop-managers/mate.nix @@ -20,6 +20,20 @@ in }; debug = mkEnableOption (lib.mdDoc "mate-session debug messages"); + + extraPanelApplets = mkOption { + default = [ ]; + example = literalExpression "with pkgs.mate; [ mate-applets ]"; + type = types.listOf types.package; + description = lib.mdDoc "Extra applets to add to mate-panel."; + }; + + extraCajaExtensions = mkOption { + default = [ ]; + example = lib.literalExpression "with pkgs.mate; [ caja-extensions ]"; + type = types.listOf types.package; + description = lib.mdDoc "Extra extensions to add to caja."; + }; }; environment.mate.excludePackages = mkOption { @@ -44,6 +58,12 @@ in (pkgs.mate.basePackages ++ pkgs.mate.extraPackages ++ [ + (pkgs.mate.caja-with-extensions.override { + extensions = cfg.extraCajaExtensions; + }) + (pkgs.mate.mate-panel-with-applets.override { + applets = cfg.extraPanelApplets; + }) pkgs.desktop-file-utils pkgs.glib pkgs.gtk3.out |