nixos/xfce4-14: support thunarPlugins

This commit is contained in:
worldofpeace 2019-11-04 16:29:17 -05:00
parent ac70cd728c
commit c5176abf81

View File

@ -24,15 +24,14 @@ in
description = "Enable the Xfce desktop environment."; description = "Enable the Xfce desktop environment.";
}; };
# TODO: support thunar plugins thunarPlugins = mkOption {
# thunarPlugins = mkOption { default = [];
# default = []; type = types.listOf types.package;
# type = types.listOf types.package; example = literalExample "[ pkgs.xfce4-14.thunar-archive-plugin ]";
# example = literalExample "[ pkgs.xfce4-14.thunar-archive-plugin ]"; description = ''
# description = '' A list of plugin that should be installed with Thunar.
# A list of plugin that should be installed with Thunar. '';
# ''; };
# };
noDesktop = mkOption { noDesktop = mkOption {
type = types.bool; type = types.bool;
@ -83,9 +82,7 @@ in
xfce4-taskmanager xfce4-taskmanager
xfce4-terminal xfce4-terminal
# TODO: resync patch for plugins (thunar.override { thunarPlugins = cfg.thunarPlugins; })
#(thunar.override { thunarPlugins = cfg.thunarPlugins; })
thunar
] # TODO: NetworkManager doesn't belong here ] # TODO: NetworkManager doesn't belong here
++ optional config.networking.networkmanager.enable networkmanagerapplet ++ optional config.networking.networkmanager.enable networkmanagerapplet
++ optional config.powerManagement.enable xfce4-power-manager ++ optional config.powerManagement.enable xfce4-power-manager
@ -145,7 +142,7 @@ in
# Systemd services # Systemd services
systemd.packages = with pkgs.xfce4-14; [ systemd.packages = with pkgs.xfce4-14; [
thunar (thunar.override { thunarPlugins = cfg.thunarPlugins; })
] ++ optional (!cfg.noDesktop) xfce4-notifyd; ] ++ optional (!cfg.noDesktop) xfce4-notifyd;
}; };