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:
parent
ebbb7538fc
commit
df817fa2c1
@ -175,7 +175,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = false;
|
||||||
domain = "nextcloud.dark-firepit.cloud";
|
domain = "nextcloud.dark-firepit.cloud";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ in {
|
|||||||
options.modules.services.nextcloud = {
|
options.modules.services.nextcloud = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = mkForce false;
|
||||||
};
|
};
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
@ -38,11 +38,12 @@ in {
|
|||||||
package = cfg.package;
|
package = cfg.package;
|
||||||
hostName = cfg.domain;
|
hostName = cfg.domain;
|
||||||
enableBrokenCiphersForSSE = false;
|
enableBrokenCiphersForSSE = false;
|
||||||
|
database.createLocally = true;
|
||||||
config = {
|
config = {
|
||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
dbuser = "nextcloud";
|
dbuser = "nextcloud3";
|
||||||
dbhost = "/run/postgresql";
|
dbhost = "/run/postgresql";
|
||||||
dbname = "nextcloud";
|
dbname = "nextcloud3";
|
||||||
adminpassFile = "/etc/nextcloudpass";
|
adminpassFile = "/etc/nextcloudpass";
|
||||||
adminuser = "root";
|
adminuser = "root";
|
||||||
# "log_type" = "systemd";
|
# "log_type" = "systemd";
|
||||||
@ -59,10 +60,10 @@ in {
|
|||||||
|
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureDatabases = [ "nextcloud" ];
|
ensureDatabases = [ "nextcloud3" ];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{ name = "nextcloud";
|
{ name = "nextcloud3";
|
||||||
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
|
ensurePermissions."DATABASE nextcloud3" = "ALL PRIVILEGES";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -15,5 +15,9 @@ in {
|
|||||||
home._.programs.fish = {
|
home._.programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
fishPlugins.tide
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user