feat: Deploy nextcloud

This commit is contained in:
uttarayan21
2024-11-20 17:14:34 +02:00
parent b56d9b148a
commit dc124ceceb
4 changed files with 50 additions and 0 deletions

View File

@@ -11,6 +11,13 @@
];
security.sudo.wheelNeedsPassword = false;
sops.defaultSopsFile = ../../secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/fs0c131y/.config/sops/age/keys.txt";
sops.secrets."nextcloud/adminpass" = {
owner = config.users.users.nextcloud.name;
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View File

@@ -17,7 +17,17 @@
enable = true;
package = pkgs.nextcloud30;
hostName = "cloud.darksailor.dev";
config.adminuser = "servius";
config.adminpassFile = config.sops.secrets."nextcloud/adminpass".path;
configureRedis = true;
};
services.nginx.virtualHosts."${config.services.nextcloud.hostName}".listen = [
{
addr = "127.0.0.1";
port = 8080; # NOT an exposed port
}
];
services.caddy = {
enable = true;
virtualHosts."music.darksailor.dev".extraConfig = ''