thunar/module.nix: add {enableOption, gvfs, file-roller, thumbnails}

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit 2b045992c1

View file

@ -3,7 +3,13 @@
lib, lib,
pkgs, pkgs,
... ...
}: { }: let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.modules.programs.thunar;
in {
options.modules.programs.thunar.enable = mkEnableOption "Thunar file manager";
config = mkIf cfg.enable {
programs.thunar = { programs.thunar = {
enable = true; enable = true;
plugins = builtins.attrValues { plugins = builtins.attrValues {
@ -20,4 +26,14 @@
enable = true; enable = true;
package = pkgs.gvfs; package = pkgs.gvfs;
}; };
# Archive management
programs.file-roller = {
enable = true;
package = pkgs.file-roller;
};
# image thumbnails
services.tumbler.enable = true;
};
} }