add nextcloud

This commit is contained in:
Cyryl Płotnicki 2021-09-12 09:28:34 +01:00
parent 77032be8e3
commit 5e7a3237b1
2 changed files with 19 additions and 0 deletions

View file

@ -10,6 +10,7 @@
./restic-server.nix ./restic-server.nix
./i2p.nix ./i2p.nix
./print-server.nix ./print-server.nix
./nextcloud.nix
]; ];
networking = { networking = {
hostName = "brix"; hostName = "brix";

View file

@ -0,0 +1,18 @@
{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 80 ];
services.nextcloud = {
enable = true;
home = "/data/nextcloud";
https = false;
hostName = "purrfect.estate";
package = pkgs.nextcloud22;
config = {
adminuser = "cyryl";
adminpassFile = "/etc/secrets/nextcloud";
dbtype = "sqlite";
};
};
}