mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
41 lines
895 B
Nix
41 lines
895 B
Nix
{ config, ... }:
|
|
{
|
|
sops.secrets = {
|
|
"nextcloud/admin-password" = { };
|
|
"nextcloud/gmail-password" = { };
|
|
tailscale-auth-key = { };
|
|
};
|
|
|
|
containers.nextcloud = {
|
|
autoStart = true;
|
|
ephemeral = true;
|
|
bindMounts = {
|
|
"/run/secrets/nextcloud".isReadOnly = false;
|
|
"/run/secrets/tailscale-auth-key" = { };
|
|
"/data/nextcloud".isReadOnly = false;
|
|
"/data/postgresql".isReadOnly = false;
|
|
"/var/lib/tailscale" = {
|
|
hostPath = "/var/lib/tailscale-nextcloud";
|
|
isReadOnly = false;
|
|
};
|
|
};
|
|
|
|
specialArgs = {
|
|
inherit (config.networking) domain;
|
|
};
|
|
config =
|
|
{ domain, ... }:
|
|
{
|
|
system.stateVersion = "24.05";
|
|
networking = {
|
|
inherit domain;
|
|
};
|
|
|
|
imports = [
|
|
./nextcloud.nix
|
|
./email-server.nix
|
|
./tailscale.nix
|
|
];
|
|
};
|
|
};
|
|
}
|