blob: d6cbd4df836a6dcfcfe2f1a20c5b81a2bc7c5df8 (
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
|
{
config,
guzzle_api,
pkgs,
...
}: {
imports = [
./buildMachines.nix
./grafana.nix
./hardware-configuration.nix
./loki.nix
./nginx.nix
./victoriametrics.nix
];
boot = {
loader.grub = {
enable = true;
device = "/dev/sda";
};
supportedFilesystems = ["btrfs"];
};
networking = {
domain = "mydadleft.me";
hostName = "p-body";
};
services = {
guzzle-api = {
enable = true;
url = "https://api." + config.networking.domain;
port = "8080";
package = guzzle_api.packages.x86_64-linux.guzzle-api-server;
};
};
systemd.network = {
enable = true;
networks."10-wan" = {
matchConfig.Name = "enp1s0";
networkConfig.DHCP = "ipv4";
address = [
"2a01:4ff:f0:eb52::1/64"
];
routes = [
{routeConfig.Gateway = "fe80::1";}
];
};
};
swapDevices = [
{
device = "/swapfile";
size = 8192;
}
];
users.users.p-body = {
extraGroups = ["wheel"];
isNormalUser = true;
shell = pkgs.bash;
passwordFile = config.age.secrets.userPassword.path;
};
zramSwap.enable = true;
}
|