add nextcloud

This commit is contained in:
Leon Vatthauer 2024-05-29 08:27:05 +02:00
parent 860a267f68
commit c4407c2361
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
5 changed files with 16 additions and 3 deletions

View file

@ -63,8 +63,8 @@
EDITOR = "vim";
# bitwarden key
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}";
};
environment.shells = [ pkgs.zsh ];

View file

@ -18,6 +18,13 @@
fsType = "ext4";
};
fileSystems."/nix" =
{ device = "/dev/disk/by-label/nix";
fsType = "ext4";
neededForBoot = true;
options = [ "noatime" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/d8d1edd9-e549-4d92-94d5-8ac5af126a5b"; }
];

View file

@ -9,5 +9,6 @@
./restic.nix
./ssh.nix
./vaultwarden.nix
./nextcloud.nix
];
}

View file

@ -1,11 +1,15 @@
{ pkgs, ... }:
{
services.nextcloud = {
enable = true;
package = pkgs.nextcloud29
package = pkgs.nextcloud29;
hostName = "cloud.vatthauer.xyz";
https = true;
config.adminuser = "admin";
config.adminpassFile = "${../../nix-secrets/dafoe/nextcloud/adminpass}";
configureRedis = true;
maxUploadSize = "1G";
#nginx.enable = true;
settings.overwriteProtocol = "https";
};
}

View file

@ -48,6 +48,7 @@
services.nginx.virtualHosts."cloud.vatthauer.xyz" = {
forceSSL = true;
enableACME = true;
#locations."/".proxyPass = "http://localhost:8080";
# nextcloud does location setup itself
};
}