{ config, lib, pkgs, ... }: with lib; { options.nixosModules.thunar.enable = mkEnableOption "Enable thunar"; config = mkIf config.nixosModules.thunar.enable { programs.thunar = { enable = true; plugins = with pkgs.xfce; [ thunar-archive-plugin thunar-volman ]; }; environment.systemPackages = with pkgs; [ xfce.tumbler ]; }; }