♻️ [pi4] Rename default_phone_region and other minor changes in Nextcloud
This commit is contained in:
@ -1,8 +1,13 @@
|
||||
# https://mich-murphy.com/configure-nextcloud-nixos/
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
common,
|
||||
...
|
||||
}:
|
||||
let
|
||||
adminPass = "nextcloud/admin-pass";
|
||||
domain = "beta.nextcloud.martials.no";
|
||||
adminPassKey = "nextcloud/admin-pass";
|
||||
domain = "beta.nextcloud.${common.domain}";
|
||||
dbname = "nextcloud";
|
||||
dbuser = dbname;
|
||||
in
|
||||
@ -14,14 +19,13 @@ in
|
||||
autoUpdateApps.enable = true;
|
||||
|
||||
config = {
|
||||
adminpassFile = config.sops.secrets.${adminPass}.path;
|
||||
adminpassFile = config.sops.secrets.${adminPassKey}.path;
|
||||
dbtype = "pgsql";
|
||||
dbname = dbname;
|
||||
dbuser = dbuser;
|
||||
# default directory for postgresql, ensures automatic setup of db
|
||||
dbhost = "/run/postgresql";
|
||||
adminuser = "admin";
|
||||
defaultPhoneRegion = "NO";
|
||||
};
|
||||
|
||||
extraApps = {
|
||||
@ -37,10 +41,11 @@ in
|
||||
hostName = domain;
|
||||
https = true;
|
||||
|
||||
maxUploadSize = "0";
|
||||
maxUploadSize = "0"; # No max limit
|
||||
package = pkgs.nextcloud31;
|
||||
|
||||
settings = {
|
||||
default_phone_region = "NO";
|
||||
trusted_domains = [
|
||||
domain
|
||||
];
|
||||
@ -66,7 +71,7 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
sops.secrets.${adminPass}.neededForUsers = true;
|
||||
sops.secrets.${adminPassKey}.neededForUsers = true;
|
||||
|
||||
# ensure postgresql db is started with nextcloud
|
||||
systemd.services."nextcloud-setup" = {
|
||||
|
Reference in New Issue
Block a user