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

@ -1,61 +1,63 @@
{ config, ... }:
let
inherit (config) myConfig;
inherit (config.myConfig.tailscale) caddyServe;
inherit (config.custom) services;
inherit (config.custom.services.tailscale) caddyServe;
in
{
system.stateVersion = "24.11";
myConfig = {
custom = {
boot.loader.systemdBoot.enable = true;
sops.enable = true;
tailscale = {
enable = true;
ssh.enable = true;
exitNode.enable = true;
services = {
tailscale = {
enable = true;
ssh.enable = true;
exitNode.enable = true;
serve = {
isFunnel = true;
target = toString ./hedgedoc-redirect.html;
};
serve = {
isFunnel = true;
target = toString ./hedgedoc-redirect.html;
};
caddyServe = {
nextcloud = {
subdomain = "cloud";
inherit (myConfig.nextcloud) port;
};
actualbudget = {
subdomain = "budget";
inherit (myConfig.actualbudget) port;
};
forgejo = {
subdomain = "git";
inherit (myConfig.forgejo) port;
caddyServe = {
nextcloud = {
subdomain = "cloud";
inherit (services.nextcloud) port;
};
actualbudget = {
subdomain = "budget";
inherit (services.actualbudget) port;
};
forgejo = {
subdomain = "git";
inherit (services.forgejo) port;
};
};
};
};
nextcloud = {
enable = true;
inherit (caddyServe.nextcloud) subdomain;
backups.enable = true;
};
actualbudget = {
enable = true;
inherit (caddyServe.actualbudget) subdomain;
backups.enable = true;
};
forgejo = {
enable = true;
inherit (caddyServe.forgejo) subdomain;
};
nextcloud = {
enable = true;
inherit (caddyServe.nextcloud) subdomain;
backups.enable = true;
};
actualbudget = {
enable = true;
inherit (caddyServe.actualbudget) subdomain;
backups.enable = true;
};
forgejo = {
enable = true;
inherit (caddyServe.forgejo) subdomain;
};
syncthing = {
enable = true;
deviceId = "5R2MH7T-Q2ZZS2P-ZMSQ2UJ-B6VBHES-XYLNMZ6-7FYC27L-4P7MGJ2-FY4ITQD";
isServer = true;
backups.enable = true;
syncthing = {
enable = true;
deviceId = "5R2MH7T-Q2ZZS2P-ZMSQ2UJ-B6VBHES-XYLNMZ6-7FYC27L-4P7MGJ2-FY4ITQD";
isServer = true;
backups.enable = true;
};
};
};
}