mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
40 lines
813 B
Nix
40 lines
813 B
Nix
{ config, ... }:
|
|
let
|
|
inherit (config) myConfig;
|
|
inherit (myConfig.tailscale) caddyServe;
|
|
in
|
|
{
|
|
system.stateVersion = "24.11";
|
|
|
|
myConfig = {
|
|
boot.loader.systemdBoot.enable = true;
|
|
sops.enable = true;
|
|
tailscale = {
|
|
enable = true;
|
|
ssh.enable = true;
|
|
exitNode.enable = true;
|
|
|
|
caddyServe = {
|
|
nextcloud = {
|
|
subdomain = "cloud";
|
|
inherit (myConfig.nextcloud) port;
|
|
};
|
|
hedgedoc = {
|
|
subdomain = "docs";
|
|
inherit (myConfig.hedgedoc) port;
|
|
};
|
|
};
|
|
};
|
|
|
|
nextcloud = {
|
|
enable = true;
|
|
backups.enable = true;
|
|
inherit (caddyServe.nextcloud) subdomain;
|
|
};
|
|
hedgedoc = {
|
|
enable = true;
|
|
backups.enable = true;
|
|
inherit (caddyServe.hedgedoc) subdomain;
|
|
};
|
|
};
|
|
}
|