feat(service): add nextcloud

This commit is contained in:
2026-03-13 18:05:31 +01:00
parent 06467e4d87
commit a96c1e8d92
2 changed files with 36 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
{ {
imports = [ imports = [
./gitea.nix ./gitea.nix
./nextcloud.nix
# ./nginx.nix
./octoprint.nix ./octoprint.nix
./vaultwarden.nix ./vaultwarden.nix
]; ];
+34
View File
@@ -0,0 +1,34 @@
{
pkgs,
config,
currentSystemUser,
...
}:
{
services = {
nextcloud = {
enable = true;
package = pkgs.nextcloud33;
hostName = "nextcloud.patrickcanal.it";
https = false;
config = {
adminpassFile = config.sops.secrets.nextcloud_password.path;
dbtype = "sqlite";
adminuser = currentSystemUser;
};
settings = {
default_phone_region = "IT";
overwriteprotocol = "https";
trusted_domains = [
"nextcloud.patrickcanal.it"
];
};
};
nginx.virtualHosts."${config.services.nextcloud.hostName}".listen = [
{
addr = "172.18.0.1";
port = 8004;
}
];
};
}