mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
26 lines
601 B
Nix
26 lines
601 B
Nix
_: {
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
sops.secrets.nextcloud.owner = "nextcloud";
|
|
|
|
users.users.nextcloud.extraGroups = ["postgres"];
|
|
|
|
services.nextcloud = {
|
|
enable = true;
|
|
package = pkgs.nextcloud27;
|
|
datadir = "/persist/services/nextcloud";
|
|
hostName = "next.gerg-l.com";
|
|
autoUpdateApps.enable = false;
|
|
enableBrokenCiphersForSSE = false;
|
|
database.createLocally = true;
|
|
config = {
|
|
dbtype = "pgsql";
|
|
adminpassFile = config.sops.secrets.nextcloud.path;
|
|
adminuser = "admin-root";
|
|
defaultPhoneRegion = "US";
|
|
};
|
|
};
|
|
_file = ./nextcloud.nix;
|
|
}
|