-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reapply "richdocuments and collabora"
This reverts commit 7eca2e4.
- Loading branch information
Showing
5 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
in { | ||
imports = [ | ||
./memories.nix | ||
./richdocuments.nix | ||
]; | ||
|
||
options.my.modules.nextcloud = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
config, | ||
lib, | ||
... | ||
}: { | ||
config = lib.mkIf config.services.nextcloud.enable { | ||
# See https://collabora-online-for-nextcloud.readthedocs.io/en/latest/install/ | ||
services.nextcloud = { | ||
extraApps = { | ||
inherit (config.services.nextcloud.package.packages.apps) richdocuments; | ||
}; | ||
}; | ||
|
||
virtualisation.oci-containers = lib.mkIf config.services.nextcloud.enable { | ||
backend = "docker"; | ||
containers = { | ||
collabora-code = { | ||
image = "collabora/code:24.04.7.2.1"; | ||
ports = ["9980:9980"]; | ||
environment = { | ||
extra_params = "--o:ssl.enable=false --o:ssl.termination=true"; | ||
}; | ||
extraOptions = ["--cap-add=MKNOD"]; | ||
}; | ||
}; | ||
}; | ||
|
||
systemd.services.nginx = { | ||
after = ["docker-collabora-code.service"]; | ||
requires = ["docker-collabora-code.service"]; | ||
}; | ||
|
||
my.modules.https-proxy = { | ||
enable = true; | ||
configurations = [ | ||
{ | ||
fqdn = "collabora.${config.my.host.name}.ritter.family"; | ||
target = "http://localhost:9980"; | ||
proxyWebsockets = true; | ||
} | ||
]; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters