thunar/module.nix: add {enableOption, gvfs, file-roller, thumbnails}
This commit is contained in:
parent
b4c1c7891a
commit
2b045992c1
1 changed files with 31 additions and 15 deletions
|
@ -3,21 +3,37 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
programs.thunar = {
|
inherit (lib.modules) mkIf;
|
||||||
enable = true;
|
inherit (lib.options) mkEnableOption;
|
||||||
plugins = builtins.attrValues {
|
cfg = config.modules.programs.thunar;
|
||||||
inherit
|
in {
|
||||||
(pkgs.xfce)
|
options.modules.programs.thunar.enable = mkEnableOption "Thunar file manager";
|
||||||
thunar-volman
|
config = mkIf cfg.enable {
|
||||||
thunar-vcs-plugin
|
programs.thunar = {
|
||||||
thunar-archive-plugin
|
enable = true;
|
||||||
thunar-media-tags-plugin
|
plugins = builtins.attrValues {
|
||||||
;
|
inherit
|
||||||
|
(pkgs.xfce)
|
||||||
|
thunar-volman
|
||||||
|
thunar-vcs-plugin
|
||||||
|
thunar-archive-plugin
|
||||||
|
thunar-media-tags-plugin
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
services.gvfs = {
|
||||||
services.gvfs = {
|
enable = true;
|
||||||
enable = true;
|
package = pkgs.gvfs;
|
||||||
package = pkgs.gvfs;
|
};
|
||||||
|
|
||||||
|
# Archive management
|
||||||
|
programs.file-roller = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.file-roller;
|
||||||
|
};
|
||||||
|
|
||||||
|
# image thumbnails
|
||||||
|
services.tumbler.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue