Add thunar

This commit is contained in:
ItsDrike 2024-06-10 18:53:34 +02:00
parent d15842324a
commit f5febc9346
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 38 additions and 0 deletions

View file

@ -2,5 +2,6 @@
imports = [
./misc.nix
./physlock.nix
./thunar.nix
];
}

View file

@ -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;
};
}