diff options
| author | adikro <adikro@disroot.org> | 2026-03-01 19:57:16 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-03-01 19:57:16 +0100 |
| commit | 1be09af058424219de2aad4b9cc27ccf760d23f6 (patch) | |
| tree | bdc1177b166e1eef36763984b6862d7755a7bde8 /os/srv/files.nix | |
| parent | 4b41ce640c5eddcb50904331e03aac5460caa144 (diff) | |
...
Diffstat (limited to 'os/srv/files.nix')
| -rw-r--r-- | os/srv/files.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/os/srv/files.nix b/os/srv/files.nix index 875a825..719642c 100644 --- a/os/srv/files.nix +++ b/os/srv/files.nix @@ -10,13 +10,19 @@ in { options.os.srv.files = { enable = lib.mkEnableOption "enables general file management stuff"; + localsend.enable = lib.mkEnableOption "enables localsend for sharing files locally"; krusader.enable = lib.mkEnableOption "enables krusader for easier file moving using ssh"; }; config = lib.mkMerge [ - { + (lib.mkIf cfg.enable { programs.thunar = { enable = true; plugins = with pkgs; [ + ffmpegthumbnailer + libgsf + poppler + freetype + webp-pixbuf-loader thunar-volman thunar-archive-plugin ]; @@ -31,8 +37,13 @@ in pxz pigz ]; - } - + }) + (lib.mkIf cfg.localsend.enable { + programs.localsend = { + enable = true; + openFirewall = true; + }; + }) (lib.mkIf cfg.krusader.enable { environment.systemPackages = with pkgs; [ krusader |
