diff options
Diffstat (limited to 'machines/feneri.nix')
| -rw-r--r-- | machines/feneri.nix | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/machines/feneri.nix b/machines/feneri.nix index e75738b..605159e 100644 --- a/machines/feneri.nix +++ b/machines/feneri.nix @@ -1,9 +1,7 @@ -{ flake, modulesPath, ... }: +{ config, modulesPath, ... }: { imports = [ - # flake.outputs.nixosModules.disk - # flake.outputs.nixosModules.network (modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/virtualisation/qemu-guest-agent.nix") ]; @@ -44,5 +42,32 @@ }; }; - networking.hostName = "feneri"; + services.hydra = { + enable = true; + hydraURL = "https://hydra.web.4kb.net"; + notificationSender = "hydra@localhost"; + buildMachinesFiles = []; + useSubstitutes = true; + }; + + services.nginx.virtualHosts."hydra.web.4kb.net" = { + useACMEHost = "4kb.net"; + forceSSL = true; + + locations."/".proxyPass = "http://localhost:${toString config.services.hydra.port}"; + }; + + nix.settings.allowed-uris = [ + "git+https://github.com/NixOS/nixpkgs/" + "https://channels.nixos.org/" + "https://releases.nixos.org/nixos/" + ]; + + systemd.services.hydra-notify.enable = false; + + networking = { + hostName = "feneri"; + domain = "4kb.net"; + useDHCP = false; + }; } |
