forgejo: converted to flake

This commit is contained in:
Serĉanto de Scio 2023-08-03 21:11:27 +10:00
parent 49ac0ea8d2
commit 92736d64d6
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -3,12 +3,10 @@
config,
pkgs,
lib,
sources,
nixpkgsUnstable,
...
}: let
sources = import ../nix/sources.nix;
unstable = import sources.nixpkgsUnstable {};
in {
}:
{
services.gitea = {
enable = true; # Enable Forgejo
appName = "mcwhirter.io: Forgejo Service"; # Give the site a name
@ -20,7 +18,7 @@ in {
domain = "source.mcwhirter.io"; # Domain name
rootUrl = "https://source.mcwhirter.io/"; # Root web URL
httpPort = 3002; # Provided unique port
package = unstable.forgejo; # a soft fork of gitea
package = nixpkgsUnstable.forgejo; # a soft fork of gitea
settings = let
docutils = pkgs.python39.withPackages (ps:
with ps; [