diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
| commit | 791bc419b6dac7c70951981ef6b34cdf85828470 (patch) | |
| tree | 56d0962fdf829ae942feb1344763e54dbc3c89a3 /sys/srv/files.nix | |
| parent | e60410393cea222b16743a1a87f29c06b9b3543b (diff) | |
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'sys/srv/files.nix')
| -rw-r--r-- | sys/srv/files.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sys/srv/files.nix b/sys/srv/files.nix new file mode 100644 index 0000000..bbd6ca8 --- /dev/null +++ b/sys/srv/files.nix @@ -0,0 +1,44 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.szpont.sys.srv.files; +in +{ + options.szpont.sys.srv.files = { + thunar.enable = lib.mkEnableOption "thunar file manager"; + utils.enable = lib.mkEnableOption "compression and trash utilities"; + }; + + config = lib.mkMerge [ + { + szpont.sys.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.gnome.gnome-keyring.enable = true; + environment.systemPackages = with pkgs; [ file-roller ]; + }) + + (lib.mkIf cfg.utils.enable { + services.gvfs.enable = true; + + environment.systemPackages = with pkgs; [ + trashy + gdu + + unzip + p7zip + unrar + pxz + pigz + ]; + }) + ]; +} |
