Rename the namespace of the system-modules

This commit is contained in:
SebastianStork 2025-05-27 22:19:35 +02:00
parent 61f32cb7ea
commit 06623cd93a
34 changed files with 162 additions and 153 deletions

View file

@ -3,35 +3,37 @@
system.stateVersion = "24.11";
networking.domain = "sprouted.cloud";
myConfig = {
custom = {
boot.loader.grub.enable = true;
sops.enable = true;
tailscale = {
enable = true;
ssh.enable = true;
};
services = {
tailscale = {
enable = true;
ssh.enable = true;
};
hedgedoc = {
enable = true;
subdomain = "docs";
backups.enable = true;
};
hedgedoc = {
enable = true;
subdomain = "docs";
backups.enable = true;
};
crowdsec = {
enable = true;
firewallBouncer.enable = true;
sources = [
"iptables"
"caddy"
];
crowdsec = {
enable = true;
firewallBouncer.enable = true;
sources = [
"iptables"
"caddy"
];
};
};
};
services.caddy = {
enable = true;
virtualHosts."docs.${config.networking.domain}".extraConfig = ''
reverse_proxy localhost:${toString config.myConfig.hedgedoc.port}
reverse_proxy localhost:${toString config.custom.services.hedgedoc.port}
'';
};