mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2025-12-22 15:01:57 +00:00
Added gitea to home server
This commit is contained in:
@@ -25,5 +25,6 @@
|
||||
./containers/caddy.nix
|
||||
./containers/work_tools.nix
|
||||
./containers/nextcloud.nix
|
||||
./containers/gitea.nix
|
||||
];
|
||||
}
|
||||
|
||||
35
home-manager/homeserver/containers/gitea.nix
Normal file
35
home-manager/homeserver/containers/gitea.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
unstablePkgs,
|
||||
...
|
||||
}: {
|
||||
services.podman = {
|
||||
networks = {
|
||||
gitea-net = {};
|
||||
};
|
||||
containers = {
|
||||
nextcloud = {
|
||||
image = "docker.gitea.com/gitea:latest-rootless";
|
||||
autoUpdate = "registry";
|
||||
network = [
|
||||
"gitea-net"
|
||||
"proxy-net"
|
||||
];
|
||||
ports = [
|
||||
"3000:3000"
|
||||
"2222:2222"
|
||||
];
|
||||
volumes = [
|
||||
"/home/cianh/gitea/data:/var/lib/gitea"
|
||||
"/home/cianh/gitea/config:/etc/gitea"
|
||||
"/etc/timezone:/etc/timezone:ro"
|
||||
"/etc/localtime:/etc/localtime:ro"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user