From adc44af3a0a83889491417c1ed77340f04befdcd Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 5 Aug 2025 21:43:37 -0600 Subject: [PATCH] nixos/services: remove forgejo --- nixos/services/default.nix | 4 +- nixos/services/forgejo/default.nix | 66 ------------------------------ 2 files changed, 1 insertion(+), 69 deletions(-) delete mode 100644 nixos/services/forgejo/default.nix diff --git a/nixos/services/default.nix b/nixos/services/default.nix index 36b456a..5ce655e 100644 --- a/nixos/services/default.nix +++ b/nixos/services/default.nix @@ -4,7 +4,5 @@ pkgs, ... }: { - imports = [ - ./forgejo - ]; + imports = []; } diff --git a/nixos/services/forgejo/default.nix b/nixos/services/forgejo/default.nix deleted file mode 100644 index b15d2d9..0000000 --- a/nixos/services/forgejo/default.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -with lib; let - cfg = config.options.trivium.services.forgejo; -in { - options.trivium.services.forgejo = { - enable = mkEnableOption "forgejo settings"; - - virtualHost = mkOption { - type = types.string; - description = "Virtualhost to use for nginx's reverse proxy. Usually something like git..com"; - }; - - appName = mkOption { - type = types.string; - description = "You guess what this does"; - }; - - disableRegistration = mkOption { - type = types.bool; - default = true; - description = "Turn this off just to create the first admin account"; - }; - }; - - config = mkIf cfg.enable { - services = { - nginx = { - virtualHosts."${cfg.virtualHost}" = { - enableACME = true; - forceSSL = true; - locations."/".proxyPass = "http://localhost:9170"; - }; - }; - - forgejo = { - enable = true; - lfs.enable = true; - useWizard = false; - settings = { - general.APP_NAME = "${cfg.appName}"; - ui.DEFAULT_THEME = "forgejo-dark"; - server = { - DOMAIN = "${cfg.virtualHost}"; - ROOT_URL = "https://${cfg.virtualHost}"; - HTTP_PORT = 9170; - LANDING_PAGE = "explore"; - }; - - service.DISABLE_REGISTRATION = ${cfg.disableRegistration}; - - actions = { - ENABLED = true; - }; - mailer = { - ENABLED = false; - }; - }; - }; - }; - }; -}