diff --git a/flake.nix b/flake.nix index edce4ca..927b38d 100644 --- a/flake.nix +++ b/flake.nix @@ -349,6 +349,7 @@ ./nixos/minio_server.nix ./nixos/nextcloud.nix ./nixos/immich.nix + ./nixos/forgejo.nix # cute-api.nixosModules.default # { services.cute-api = { enable = true; host = "0.0.0.0"; }; } # ./nixos/garage.nix diff --git a/nixos/forgejo.nix b/nixos/forgejo.nix new file mode 100644 index 0000000..ff2e296 --- /dev/null +++ b/nixos/forgejo.nix @@ -0,0 +1,25 @@ +{ + services.forgejo = { + enable = true; + database.type = "postgres"; + lfs.enable = true; + settings = { + server = { + DOMAIN = "git.bertof.net"; + ROOT_URL = "https://git.bertof.net"; + HTTP_PORT = 3000; + DISABLE_SSH = true; + }; + session = { + COOKIE_SECURE = true; + }; + service = { + # DISABLE_REGISTRATION = true; + }; + actions = { + ENABLED = true; + DEFAULT_ACTIONS_URL = "github"; + }; + }; + }; +}