update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
9
services/postgres.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# used for gitea and nextcloud
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_13;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user