Big refactor, need to test still

This commit is contained in:
Lillian Violet 2023-12-28 12:47:58 +01:00
parent 85eb74721e
commit ba1d04f83a
26 changed files with 17 additions and 16 deletions

View file

@ -0,0 +1,43 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [];
users.users = {
gitea = {
isSystemUser = true;
isNormalUser = false;
extraGroups = ["virtualMail"];
};
};
sops.secrets."mailpassunhash".mode = "0440";
sops.secrets."mailpassunhash".owner = config.users.users.virtualMail.name;
services.gitea = {
enable = true;
#TODO: different mail passwords for different services
mailerPasswordFile = config.sops.secrets."mailpassunhash".path;
database = {
type = "postgres";
};
domain = "git.lillianviolet.dev";
rootUrl = "https://git.lillianviolet.dev/";
httpPort = 3218;
};
services.nginx = {
virtualHosts = {
"git.lillianviolet.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:3218";
};
};
};
};
}