summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/feneri.nix33
-rw-r--r--machines/t1.nix1
2 files changed, 30 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;
+ };
}
diff --git a/machines/t1.nix b/machines/t1.nix
index d8d749b..3a46494 100644
--- a/machines/t1.nix
+++ b/machines/t1.nix
@@ -19,6 +19,7 @@
desktop.enable = true;
users.kle.enable = true;
net = {
+ enable = true;
v6Token = "::beef";
sshd.enable = true;
sshd.publish = true;