diff --git a/system/roles/workstation/programs/default.nix b/system/roles/workstation/programs/default.nix index 661d81a..10f2500 100644 --- a/system/roles/workstation/programs/default.nix +++ b/system/roles/workstation/programs/default.nix @@ -2,5 +2,6 @@ imports = [ ./misc.nix ./physlock.nix + ./thunar.nix ]; } diff --git a/system/roles/workstation/programs/thunar.nix b/system/roles/workstation/programs/thunar.nix new file mode 100644 index 0000000..513b2ec --- /dev/null +++ b/system/roles/workstation/programs/thunar.nix @@ -0,0 +1,37 @@ +{ + lib, + pkgs, + config, + ... +}: let + inherit (lib) mkIf; + deviceType = config.myOptions.device.roles.type; + acceptedTypes = ["laptop" "desktop"]; +in { + config = mkIf (builtins.elem deviceType acceptedTypes) { + # Unconditionally enable thunar file manager here as a relatively + # lightweight fallback option for my default file manager. + programs.thunar = { + enable = true; + + plugins = with pkgs.xfce; [ + thunar-archive-plugin + thunar-media-tags-plugin + ]; + }; + + environment = { + systemPackages = with pkgs; [ + # packages necessery for thunar thumbnails + xfce.tumbler + libgsf # odf files + ffmpegthumbnailer + ark # GUI archiver for thunar archive plugin + ]; + }; + + # thumbnail support on thunar + services.tumbler.enable = true; + }; +} +