blob: 044837ac31868ccabf52dd964d14fd87eb73add3 (
plain) (
blame)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
{lib, ...}: {
imports = [
./networking.nix # network configuration that just works
./hardware.nix
../../../modules/common/vhack
];
vhack = {
services.backup.storagebox = {
enable = true;
sshKey = ./secrets/backup/backupssh.age;
repositoryPassword = ./secrets/backup/backuppass.age;
user = "u384702-sub4";
# NOTE(@soispha): There are three different hostkeys, just use the first one. <2026-11-25>
# ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs
# ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==
# ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAGK0po6usux4Qv2d8zKZN1dDvbWjxKkGsx7XwFdSUCnF19Q8psHEUWR7C/LtSQ5crU/g+tQVRBtSgoUcE8T+FWp5wBxKvWG2X9gD+s9/4zRmDeSJR77W6gSA/+hpOZoSE+4KgNdnbYSNtbZH/dN74EG7GLb/gcIpbUUzPNXpfKl7mQitw==
sshHostKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs";
};
monitoring = {
prometheus = {
enable = true;
remoteWriteTo = {
url = "https://prometheus-server2.vhack.eu";
};
};
# TODO: Also provide something for Loki <2026-07-19>
};
rocie = {
enable = true;
domain = "rocie.vhack.eu";
loginSecret = ./secrets/rocie/login.age;
};
nix-sync = {
enable = true;
domains = import ./websites.nix {};
};
mastodon = {
enable = true;
domain = "mastodon.vhack.eu";
enableTLD = false;
tld = "vhack.eu";
mailPwFile = ./secrets/mastodon/mail.age;
};
matrix = {
enable = true;
fqdn = "matrix.vhack.eu";
url = "vhack.eu";
sharedSecretFile = ./secrets/matrix/passwd.age;
};
miniflux = {
enable = true;
domain = "miniflux.foss-syndicate.org";
extraDomains = [
"rss.foss-syndicate.org"
"rss.vhack.eu"
"miniflux.vhack.eu"
];
adminCredentialsFile = ./secrets/miniflux/admin.age;
};
murmur = {
enable = true;
host = "mumble.vhack.eu";
name = "vhack";
url = "vhack.eu";
};
peertube = {
enable = true;
peertubeGeneral = ./secrets/peertube/general.age;
smtpPasswordFile = ./secrets/peertube/smtp.age;
};
stalwart-mail = {
# enable = false;
# fqdn = "mail.vhack.eu";
# admin = "admin@vhack.eu";
# security = {
# dkimKeys = let
# loadKey = name: {
# dkimPublicKey = builtins.readFile (./secrets/dkim + "/${name}-public");
# dkimPrivateKeyPath = ./secrets/dkim + "/${name}-private.age";
# keyAlgorithm = "ed25519-sha256";
# };
# in {
# "mail.vhack.eu" = loadKey "mail.vhack.eu";
# };
# verificationMode = "strict";
# };
# openFirewall = true;
# principals = null;
};
rust-motd.enable = true;
};
networking.hostName = "server3";
networking.domain = "vhack.eu";
system.stateVersion = "24.11";
}
|