1
0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-11-22 17:01:57 +01:00

attempts to get nextcloud to work

This commit is contained in:
Jill "oatmealine" Monoids 2023-12-08 09:14:07 +01:00
parent ebbb7538fc
commit df817fa2c1
3 changed files with 12 additions and 7 deletions

@ -175,7 +175,7 @@ in {
};
nextcloud = {
enable = true;
enable = false;
domain = "nextcloud.dark-firepit.cloud";
};

@ -7,7 +7,7 @@ in {
options.modules.services.nextcloud = {
enable = mkOption {
type = types.bool;
default = false;
default = mkForce false;
};
package = mkOption {
@ -38,11 +38,12 @@ in {
package = cfg.package;
hostName = cfg.domain;
enableBrokenCiphersForSSE = false;
database.createLocally = true;
config = {
dbtype = "pgsql";
dbuser = "nextcloud";
dbuser = "nextcloud3";
dbhost = "/run/postgresql";
dbname = "nextcloud";
dbname = "nextcloud3";
adminpassFile = "/etc/nextcloudpass";
adminuser = "root";
# "log_type" = "systemd";
@ -59,10 +60,10 @@ in {
services.postgresql = {
enable = true;
ensureDatabases = [ "nextcloud" ];
ensureDatabases = [ "nextcloud3" ];
ensureUsers = [
{ name = "nextcloud";
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
{ name = "nextcloud3";
ensurePermissions."DATABASE nextcloud3" = "ALL PRIVILEGES";
}
];
};

@ -15,5 +15,9 @@ in {
home._.programs.fish = {
enable = true;
};
environment.systemPackages = with pkgs; [
fishPlugins.tide
];
};
}