feat: add gitea

This commit is contained in:
Xavier Morel
2025-11-14 20:12:17 +01:00
parent 6e05b7d50a
commit e87843f371
5 changed files with 83 additions and 3 deletions

30
containers/git.nix Normal file
View File

@@ -0,0 +1,30 @@
{ ... }:
let
db_pass = import ../config/_passwords.nix;
in
{
my-lxc.git = {
container = {
cores = 1;
memory = 2048;
disk = "10G";
swap = 512;
};
db = {
enable = true;
password = db_pass.git;
};
system = {
port = 3000;
importConfig = [
../config/git-gitea.nix
];
};
logging = {
enable = true;
metricsEnable = true;
};
private = true; # available only on private lan
auth = false; # auth overlay
};
}