From bb585fb98b80729ce3ebc930b14c6cbab4acbabf Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Sat, 3 Oct 2026 22:05:36 -0700 Subject: bump nixpkgs again and fix other flake refs --- machines/feneri.nix | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) (limited to 'machines/feneri.nix') 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; + }; } -- cgit v1.3.1