Files
2024-08-01 07:35:56 +00:00

45 lines
1.2 KiB
Nix

{ pkgs, ... }:
{
services.nextcloud = {
package = pkgs.nextcloud29;
enable = true;
hostName = "bfds.taila388c.ts.net";
settings.trusted_domains = [ "bfds" "bfds.local" ];
settings.log_Type = "file";
database.createLocally = true;
config = {
dbtype = "pgsql";
adminpassFile = "/var/lib/nextcloud-pass-files/nc-admin-password";
};
extraApps = {
inherit (pkgs.nextcloud29Packages.apps)
cookbook notes deck;
money = pkgs.fetchNextcloudApp {
#get the hash via: $ nix-prefetch-url --unpack <app zip url>
sha256 = "13lwpq75ihz9lfq383bi86lqvzcir8aqqhf56zs7fsayqh32l2r4";
url = "https://github.com/powerpaul17/nc_money/releases/download/v0.26.6/money.tar.gz";
license = "gpl3";
};
};
extraAppsEnable = true;
https = true;
};
services.nginx.virtualHosts."bfds.taila388c.ts.net" = {
# addSSL = true;
forceSSL = true;
enableACME = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "rw@boogiedev.net";
certs = {
"bfds.taila388c.ts.net".email = "rw@boogiedev.net";
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}