wip: Add host deertopia
This commit is contained in:
27
hosts/deertopia/services/nextcloud.nix
Normal file → Executable file
27
hosts/deertopia/services/nextcloud.nix
Normal file → Executable file
@@ -1,11 +1,28 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
sydnix.sops = {
|
||||
enable = true;
|
||||
keyFile = "/persist/vault/root/deertopia-key";
|
||||
sydnix = {
|
||||
sops.secrets = {
|
||||
nextcloud-admin = {
|
||||
owner = "nextcloud";
|
||||
group = "nextcloud";
|
||||
};
|
||||
};
|
||||
|
||||
impermanence.directories = [ "/var/lib/nextcloud" ];
|
||||
};
|
||||
|
||||
# services.nextcloud = {
|
||||
# };
|
||||
# Setting `services.nextcloud.hostName` automatically sets up a Nginx server
|
||||
# (on port 80) hosting the Nextcloud services.
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
hostName = "cloud.internal.deertopia.net";
|
||||
package = pkgs.nextcloud30;
|
||||
config = {
|
||||
adminpassFile = "/run/secrets/nextcloud-admin";
|
||||
dbtype = "sqlite";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user