mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
52 lines
1,007 B
Nix
52 lines
1,007 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;
|
|
};
|
|
actualbudget = {
|
|
inherit (myConfig.actualbudget) subdomain port;
|
|
};
|
|
};
|
|
};
|
|
|
|
nextcloud = {
|
|
enable = true;
|
|
backups.enable = true;
|
|
subdomain = "cloud";
|
|
};
|
|
actualbudget = {
|
|
enable = true;
|
|
backups.enable = true;
|
|
subdomain = "budget";
|
|
};
|
|
hedgedoc = {
|
|
enable = true;
|
|
backups.enable = true;
|
|
subdomain = config.networking.hostName;
|
|
};
|
|
syncthing = {
|
|
enable = true;
|
|
isServer = true;
|
|
};
|
|
};
|
|
}
|