2022-07-14 12:49:19 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let cfg = config.programs.thunar;
|
|
|
|
|
|
|
|
in {
|
|
|
|
meta = {
|
|
|
|
maintainers = teams.xfce.members;
|
|
|
|
};
|
|
|
|
|
|
|
|
options = {
|
|
|
|
programs.thunar = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "Thunar, the Xfce file manager";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
plugins = mkOption {
|
|
|
|
default = [];
|
|
|
|
type = types.listOf types.package;
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "List of thunar plugins to install.";
|
2022-07-14 12:49:19 +00:00
|
|
|
example = literalExpression "with pkgs.xfce; [ thunar-archive-plugin thunar-volman ]";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable (
|
|
|
|
let package = pkgs.xfce.thunar.override { thunarPlugins = cfg.plugins; };
|
|
|
|
|
|
|
|
in {
|
|
|
|
environment.systemPackages = [
|
|
|
|
package
|
|
|
|
];
|
|
|
|
|
|
|
|
services.dbus.packages = [
|
|
|
|
package
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.packages = [
|
|
|
|
package
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.xfconf.enable = true;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|