Big refactor, need to test still
This commit is contained in:
parent
85eb74721e
commit
ba1d04f83a
26 changed files with 17 additions and 16 deletions
43
nixos/package-configs/gitea/configuration.nix
Normal file
43
nixos/package-configs/gitea/configuration.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue