diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-10-02 21:24:08 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-10-02 21:24:08 -0500 |
| commit | f8c75486dbbf188ebbe83aefd582081739d97a86 (patch) | |
| tree | b55233284a350ef34f19b24a4e2142cefccd9c75 /modules/services/nixos/ganyupload/default.nix | |
| parent | 4300047e5fe88a9f7aad095ac500af3792d3855f (diff) | |
clean up more code
Diffstat (limited to 'modules/services/nixos/ganyupload/default.nix')
| -rw-r--r-- | modules/services/nixos/ganyupload/default.nix | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/modules/services/nixos/ganyupload/default.nix b/modules/services/nixos/ganyupload/default.nix deleted file mode 100644 index 2ec704b..0000000 --- a/modules/services/nixos/ganyupload/default.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ - pkgs, - config, - lib, - ... -}: let - cfg = config.collinux.services.ganyupload; - package = pkgs.callPackage ./pkg.nix {}; -in { - config = lib.mkIf cfg.enable { - users.groups."ganyupload" = {}; - users.users."ganyupload" = { - isSystemUser = true; - group = "ganyupload"; - home = "/var/lib/ganyupload"; - createHome = true; - homeMode = "755"; - }; - - systemd.services."ganyupload" = { - description = "Ganymede File Upload Service"; - restartIfChanged = true; - wants = ["network-online.target" "caddy.service"]; - after = ["network-online.target" "caddy.service"]; - - environment = { - PORT = toString cfg.port; - UPLOAD_DIR = "/media/ganyupload"; - }; - - serviceConfig = { - User = "ganyupload"; - Type = "simple"; - - WorkingDirectory = "/var/lib/ganyupload"; - ExecStart = "${package}/bin/ganyupload"; - }; - - wantedBy = ["multi-user.target"]; - }; - - services.caddy.virtualHosts."upld.williamsfam.us.com".extraConfig = '' - reverse_proxy 127.0.0.1:${toString cfg.port} - ''; - }; -} |
