diff --git a/configuration.nix b/configuration.nix index a39b2ae..7f6db07 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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 diff --git a/services/hydra.nix b/services/hydra.nix index da597fa..694e52a 100644 --- a/services/hydra.nix +++ b/services/hydra.nix @@ -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 = '' + + enable = 1 + + ''; }; services.postgresql = { @@ -30,4 +35,6 @@ in ''; }; +users.users.hydra-queue-runner.extraGroups = [ "docker" ]; + } diff --git a/services/postgres.nix b/services/postgres.nix new file mode 100644 index 0000000..6201e50 --- /dev/null +++ b/services/postgres.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ + # used for gitea and nextcloud + services.postgresql = { + enable = true; + package = pkgs.postgresql_13; + }; +}