syntax changes + all the arrs modules
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ lib, config, pkgs, serviceBase, ... }:
|
||||
let
|
||||
localhost = config.my.servers.settings.localhost;
|
||||
localhost = config.my.localhost;
|
||||
collaboraPort = 9980;
|
||||
in {
|
||||
options.my.servers = {
|
||||
@@ -13,6 +13,8 @@ in {
|
||||
};
|
||||
config = lib.mkIf
|
||||
(config.my.servers.nextcloud.enable && config.my.servers.postgres.enable) {
|
||||
nixpkgs.config.permittedInsecurePackages =
|
||||
[ "nodejs-14.21.3" "openssl-1.1.1v" ];
|
||||
environment.systemPackages = with pkgs; [ mediainfo dlib ];
|
||||
users.users.nextcloud = {
|
||||
isSystemUser = true;
|
||||
@@ -61,7 +63,7 @@ in {
|
||||
adminpassFile = "${pkgs.writeText "adminpass"
|
||||
"Overlying-Hatchback-Charting-Encounter-Deface-Gallantly7"}";
|
||||
dbtype = "pgsql";
|
||||
dbhost = config.my.servers.settings.postgresSocket;
|
||||
dbhost = config.my.postgresSocket;
|
||||
dbtableprefix = "oc_";
|
||||
dbname = "nextcloud";
|
||||
};
|
||||
@@ -124,7 +126,7 @@ in {
|
||||
{ };
|
||||
};
|
||||
};
|
||||
"collabora.${config.my.servers.settings.domain}" = let
|
||||
"collabora.${config.my.domain}" = let
|
||||
localUrl = "http://${localhost}:${toString collaboraPort}";
|
||||
proxySettings = {
|
||||
proxyPass = localUrl;
|
||||
|
||||
Reference in New Issue
Block a user