blob: 78e222719021cbd4036bfbca47694a6039216a66 (
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,
guzzle_api,
pkgs,
...
}: {
imports = [
./buildMachines.nix
./grafana.nix
./loki.nix
./nginx.nix
./victoriametrics.nix
];
boot = {
loader.grub = {
enable = true;
efiSupport = false;
};
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 = "ens3";
networkConfig.DHCP = "no";
address = [
"something/32"
];
routes = [
{routeConfig = {Destination = "something";};}
{
routeConfig = {
Gateway = "something";
GatewayOnLink = true;
};
}
];
};
};
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;
}
|