mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
feat(service): add nextcloud
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
|
./nextcloud.nix
|
||||||
|
# ./nginx.nix
|
||||||
./octoprint.nix
|
./octoprint.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user