at 23.11-pre 871 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let cfg = config.programs.thunar; 6 7in { 8 meta = { 9 maintainers = teams.xfce.members; 10 }; 11 12 options = { 13 programs.thunar = { 14 enable = mkEnableOption (lib.mdDoc "Thunar, the Xfce file manager"); 15 16 plugins = mkOption { 17 default = []; 18 type = types.listOf types.package; 19 description = lib.mdDoc "List of thunar plugins to install."; 20 example = literalExpression "with pkgs.xfce; [ thunar-archive-plugin thunar-volman ]"; 21 }; 22 23 }; 24 }; 25 26 config = mkIf cfg.enable ( 27 let package = pkgs.xfce.thunar.override { thunarPlugins = cfg.plugins; }; 28 29 in { 30 environment.systemPackages = [ 31 package 32 ]; 33 34 services.dbus.packages = [ 35 package 36 ]; 37 38 systemd.packages = [ 39 package 40 ]; 41 42 programs.xfconf.enable = true; 43 } 44 ); 45}