mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 08:49:42 +00:00
38 lines
844 B
Nix
38 lines
844 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
}
|
||
|
|