Apparently the container does not start at all. systemd/journalctl was not very helpful providing error information, only saying it returned an ‘exit code’. Apparently the pre-init of the container ran, and wen it failed at main init or something. My nextcloud config file now looks like this (I have a 192.168.1.0/24-network btw):
{ config, pkgs, … }:
{ containers.nextcloud = { privateNetwork = true; hostBridge = “br0”; localAddress = “192.168.1.200/24”; autoStart = true; timeoutStartSec = “2min”; bindMounts = { “/data” = { hostPath = “/data/nextcloud/data”; isReadOnly = false; }; “/db” = { hostPath = “/data/nextcloud/db”; isReadOnly = false; }; }; config = { config, pkgs, … }: { networking.interfaces.enp6s0.ipv4.routes = [ { address = “0.0.0.0”; prefixLength = 0; via = “192.168.1.1”; } ]; networking.firewall.enable = false; environment.systemPackages = with pkgs; [ vim nmap ]; services.nginx.enable = true; services.postgresql = { enable = true; package = pkgs.postgresql_10; dataDir = “/db”; enableTCPIP = true; authentication = pkgs.lib.mkOverride 10 ‘’ local all all trust host all all ::1/128 trust ‘’; initialScript = pkgs.writeText “backend-initScript” ‘’ CREATE ROLE nextcloud WITH LOGIN PASSWORD DB-PASS CREATEDB; CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON DATABASE nextcloud TO nextcloud; ‘’; }; services.nextcloud = { enable = true; hostName = “cloud.fuerstserver.org”; home = “/data”; nginx.enable = true; config = { dbtype = “pgsql”; dbuser = “nextcloud”; dbpass = “DB-PASS”; dbname = “nextcloud”; adminuser = “root”; adminpass = “PASS”; extraTrustedDomains = [ “192.168.1.200” “cloud.fuerstserver.org” “fuerstserver.fritz.box” ]; }; }; }; }; }
(Apparently it doesn’t show the tabs here, sorry for that.)