add nextcloud
This commit is contained in:
parent
133c63ccfd
commit
860a267f68
6 changed files with 23 additions and 6 deletions
|
@ -6,5 +6,6 @@
|
|||
"video.vatthauer.xyz".email = "leonvatthauer@outlook.com";
|
||||
"files.vatthauer.xyz".email = "leonvatthauer@outlook.com";
|
||||
"www.vatthauer.xyz".email = "leonvatthauer@outlook.com";
|
||||
"cloud.vatthauer.xyz".email = "leonvatthauer@outlook.com";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
enable = true;
|
||||
serviceConfig.User = "ddns";
|
||||
path = [ pkgs.curl ];
|
||||
script = "${../../nix-secrets/willem/ddns/update}";
|
||||
script = "${../../nix-secrets/dafoe/ddns/update}";
|
||||
startAt = "hourly";
|
||||
};
|
||||
}
|
||||
|
|
11
dafoe/services/nextcloud.nix
Normal file
11
dafoe/services/nextcloud.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud29
|
||||
hostName = "cloud.vatthauer.xyz";
|
||||
https = true;
|
||||
config.adminpassFile = "${../../nix-secrets/dafoe/nextcloud/adminpass}";
|
||||
configureRedis = true;
|
||||
maxUploadSize = "1G";
|
||||
};
|
||||
}
|
|
@ -45,4 +45,9 @@
|
|||
extraConfig = "autoindex on;";
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts."cloud.vatthauer.xyz" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
# nextcloud does location setup itself
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
services.restic.backups = {
|
||||
giteaBackup = {
|
||||
paths = [ "/forgejo/dump" ];
|
||||
environmentFile = "${../../nix-secrets/willem/gitea/backupCreds}";
|
||||
passwordFile = "${../../nix-secrets/willem/restic/password}";
|
||||
environmentFile = "${../../nix-secrets/dafoe/gitea/backupCreds}";
|
||||
passwordFile = "${../../nix-secrets/dafoe/restic/password}";
|
||||
repository = "b2:gitea-willem";
|
||||
initialize = true;
|
||||
timerConfig = {
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
|
||||
ROCKET_LOG = "critical";
|
||||
|
||||
ADMIN_TOKEN = "${../../nix-secrets/willem/vaultwarden/admin-token}";
|
||||
ADMIN_TOKEN = "${../../nix-secrets/dafoe/vaultwarden/admin-token}";
|
||||
|
||||
YUBICO_CLIENT_ID = "${../../nix-secrets/willem/vaultwarden/yubico-id}";
|
||||
YUBICO_SECRET_KEY = "${../../nix-secrets/willem/vaultwarden/yubico-secret}";
|
||||
YUBICO_CLIENT_ID = "${../../nix-secrets/dafoe/vaultwarden/yubico-id}";
|
||||
YUBICO_SECRET_KEY = "${../../nix-secrets/dafoe/vaultwarden/yubico-secret}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue