diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-10-02 11:23:45 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-10-02 11:23:45 -0500 |
| commit | b768ad0ca4208e8b3588b881067c43d85246e967 (patch) | |
| tree | 460dca5c6568307efc94e256186346be0271478a /modules/services/nixos/filebrowser.nix | |
| parent | 84364a52c3d7ca2f550cb3f7af56848405902bee (diff) | |
experiment with modular services; more unix domain sockets, clean up old code
Diffstat (limited to 'modules/services/nixos/filebrowser.nix')
| -rw-r--r-- | modules/services/nixos/filebrowser.nix | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/modules/services/nixos/filebrowser.nix b/modules/services/nixos/filebrowser.nix deleted file mode 100644 index 9791f8d..0000000 --- a/modules/services/nixos/filebrowser.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - lib, - pkgs, - config, - ... -}: let - cfg = config.collinux.services.filebrowser; -in - lib.mkIf cfg.enable { - users.groups."dufs" = {}; - users.users."dufs" = { - isSystemUser = true; - group = "dufs"; - extraGroups = ["fileserver"]; - }; - users.users.caddy.extraGroups = ["dufs"]; - - systemd.services."dufs" = { - description = "dufs file server"; - restartIfChanged = true; - wants = ["network-online.target"]; - after = ["network-online.target"]; - wantedBy = ["multi-user.target"]; - - serviceConfig = { - ExecStart = "${lib.getExe pkgs.dufs} /media --bind /run/dufs/dufs.sock"; - - RuntimeDirectory = "dufs"; - - User = "dufs"; - Group = "dufs"; - UMask = "0007"; - - ProtectSystem = "strict"; - ProtectHome = true; - PrivateTmp = true; - NoNewPrivileges = true; - - Restart = "on-failure"; - }; - }; - - services.caddy.virtualHosts."files.ganymede".extraConfig = '' - tls internal - reverse_proxy unix//run/dufs/dufs.sock - ''; - - collinux.services.glance.homelabServices."files" = { - url = "https://files.ganymede"; - icon = "mdi:folder"; - }; - } |
