diff --git a/machines/compute01/nextcloud.nix b/machines/compute01/nextcloud.nix index 3105dde..dd7059e 100644 --- a/machines/compute01/nextcloud.nix +++ b/machines/compute01/nextcloud.nix @@ -14,17 +14,11 @@ in https = true; config = { - overwriteProtocol = "https"; - dbtype = "pgsql"; adminpassFile = config.age.secrets."nextcloud-adminpass_file".path; adminuser = "thubrecht"; - defaultPhoneRegion = "FR"; - - trustedProxies = [ "::1" ]; - objectstore.s3 = { enable = true; @@ -71,11 +65,17 @@ in autoUpdateApps.enable = true; - extraOptions = { + settings = { + overwriteprotocol = "https"; + overwritehost = host; "overwrite.cli.url" = "https://${host}"; updatechecker = false; + default_phone_region = "FR"; + + trusted_proxies = [ "::1" ]; + allow_local_remote_servers = true; maintenance_window_start = 1; @@ -97,15 +97,12 @@ in }; virtualisation.oci-containers = { - # # Since 22.05, the default driver is podman but it doesn't work - # # with podman. It would however be nice to switch to podman. - # backend = "docker"; containers.collabora = { image = "collabora/code"; imageFile = pkgs.dockerTools.pullImage { imageName = "collabora/code"; - imageDigest = "sha256:a8cce07c949aa59cea0a7f1f220266a1a6d886c717c3b5005782baf6f384d645"; - sha256 = "sha256-lN6skv62x+x7G7SNOUyZ8W6S/uScrkqE1nbBwwSEWXQ="; + imageDigest = "sha256:07da8a191b37058514dfdf921ea8c2270c6634fa659acee774cf8594f86950e4"; + sha256 = "sha256-5oaz07NQScHUVN/HznzZGQ2bGrU/V1GhI+9btXHz0GM="; }; ports = [ "9980:9980" ]; environment = { @@ -113,6 +110,7 @@ in extra_params = "--o:ssl.enable=false --o:ssl.termination=true --o:remote_font_config.url=https://cloud.dgnum.eu/apps/richdocuments/settings/fonts.json"; }; extraOptions = [ + "--network=host" "--cap-add" "MKNOD" "--cap-add"