blob: 605159eb73f63d3bff5c1ec739b1bd014e8572b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
{ config, modulesPath, ... }:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
(modulesPath + "/virtualisation/qemu-guest-agent.nix")
];
services.qemuGuest.enable = true;
nixpkgs.hostPlatform.system = "x86_64-linux";
depot.disk = {
enable = true;
# device = "/dev/vda";
};
xnet = {
nginx.enable = true;
gitServer = {
enable = true;
path = "/var/lib/gitsrv";
gitweb.enable = true;
};
};
depot.net = {
sshd.enable = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "certs@4kb.net";
certs."4kb.net" = {
dnsProvider = "porkbun";
environmentFile = "/var/secrets/porkbun";
extraDomainNames = [
"*.4kb.net"
"*.web.4kb.net"
];
group = "nginx";
reloadServices = [ "nginx.service" ];
};
};
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;
};
}
|