nixos-config/hosts/alto/default.nix

36 lines
711 B
Nix

{ config, ... }:
let
inherit (config) myConfig;
in
{
system.stateVersion = "24.11";
myConfig = {
boot.loader.systemdBoot.enable = true;
sops.enable = true;
tailscale = {
enable = true;
ssh.enable = true;
exitNode.enable = true;
serve = {
isFunnel = true;
target = "localhost:${toString myConfig.hedgedoc.port}";
};
caddyServe.nextcloud = {
inherit (myConfig.nextcloud) subdomain port;
};
};
nextcloud = {
enable = true;
backups.enable = true;
subdomain = "cloud";
};
hedgedoc = {
enable = true;
backups.enable = true;
subdomain = config.networking.hostName;
};
};
}