2025-04-06 14:03:18 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2025-07-20 01:23:48 +02:00
|
|
|
}:
|
|
|
|
let
|
2025-04-09 15:31:18 +02:00
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.options) mkEnableOption;
|
|
|
|
cfg = config.modules.programs.thunar;
|
2025-07-20 01:23:48 +02:00
|
|
|
in
|
|
|
|
{
|
2025-04-09 15:31:18 +02:00
|
|
|
options.modules.programs.thunar.enable = mkEnableOption "Thunar file manager";
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.thunar = {
|
|
|
|
enable = true;
|
|
|
|
plugins = builtins.attrValues {
|
2025-07-20 01:23:48 +02:00
|
|
|
inherit (pkgs.xfce)
|
2025-04-09 15:31:18 +02:00
|
|
|
thunar-volman
|
|
|
|
thunar-vcs-plugin
|
|
|
|
thunar-archive-plugin
|
|
|
|
thunar-media-tags-plugin
|
|
|
|
;
|
|
|
|
};
|
2025-04-06 14:03:18 +02:00
|
|
|
};
|
2025-04-09 15:31:18 +02:00
|
|
|
services.gvfs = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.gvfs;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Archive management
|
|
|
|
programs.file-roller = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.file-roller;
|
|
|
|
};
|
|
|
|
|
|
|
|
# image thumbnails
|
|
|
|
services.tumbler.enable = true;
|
2025-04-06 14:03:18 +02:00
|
|
|
};
|
|
|
|
}
|