mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
feat(service): add gitea
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
./networking.nix
|
./networking.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./virtualisation.nix
|
./virtualisation.nix
|
||||||
|
./services
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "bomba";
|
networking.hostName = "bomba";
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
22
|
22
|
||||||
5900
|
5900
|
||||||
|
8001
|
||||||
];
|
];
|
||||||
allowedUDPPorts = [ ];
|
allowedUDPPorts = [ ];
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
6
machines/bomba/services/default.nix
Normal file
6
machines/bomba/services/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./gitea.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
14
machines/bomba/services/gitea.nix
Normal file
14
machines/bomba/services/gitea.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.gitea = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
server = {
|
||||||
|
DOMAIN = "gitea.patrickcanal.it";
|
||||||
|
ROOT_URL = "https://gitea.patrickcanal.it";
|
||||||
|
HTTP_PORT = 8001;
|
||||||
|
};
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user