This commit is contained in:
stubbfel
2022-11-19 12:09:04 +01:00
parent 5ad6cf7b17
commit f229637562
3 changed files with 21 additions and 2 deletions

View File

@@ -22,6 +22,9 @@
nix.gc.automatic = true;
nix.gc.dates = "03:15";
nix.gc.options = "--delete-older-than 15d";
nix.settings.experimental-features = "nix-command flakes";
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database

View File

@@ -7,8 +7,8 @@ in
{
services.nginx.virtualHosts."hydra.stubbe.rocks" = {
enableACME = false;
forceSSL = false;
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://${lAddress}:${toString lPort}";
};
@@ -17,6 +17,11 @@ in
port = lPort;
hydraURL = "hydra.localhost";
notificationSender = "notitification@hydra.localhost";
extraConfig = ''
<dynamicruncommand>
enable = 1
</dynamicruncommand>
'';
};
services.postgresql = {
@@ -30,4 +35,6 @@ in
'';
};
users.users.hydra-queue-runner.extraGroups = [ "docker" ];
}

9
services/postgres.nix Normal file
View File

@@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
# used for gitea and nextcloud
services.postgresql = {
enable = true;
package = pkgs.postgresql_13;
};
}