From 791bc419b6dac7c70951981ef6b34cdf85828470 Mon Sep 17 00:00:00 2001 From: adikro Date: Sat, 20 Dec 2025 03:14:45 +0100 Subject: absolutely massive rewrite, made (almost) everything modular with changes to come --- sys/srv/files.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 sys/srv/files.nix (limited to 'sys/srv/files.nix') 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 + ]; + }) + ]; +} -- cgit v1.3