blob: a2dcdc1cabc047b3a077aefb4e81f1e6b1bc9553 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ config, lib, pkgs, ... }:
let
cfg = config.os.srv.files;
in
{
options.os.srv.files = {
thunar.enable = lib.mkEnableOption "enables the thunar file manager";
utils.enable = lib.mkEnableOption "enables compression and trash utilities";
};
config = lib.mkMerge [
{
os.srv.files.utils.enable = lib.mkDefault cfg.thunar.enable;
}
(lib.mkIf cfg.thunar.enable {
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-volman
thunar-archive-plugin
thunar-vcs-plugin
];
};
services = {
tumbler.enable = true;
gnome.gnome-keyring.enable = true;
};
environment.systemPackages = with pkgs; [ file-roller ];
})
(lib.mkIf cfg.utils.enable {
services.gvfs.enable = true;
environment.systemPackages = with pkgs; [
nautilus
trashy
gdu
unzip
p7zip
unrar
pxz
pigz
];
})
];
}
|