mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
24 lines
571 B
Nix
24 lines
571 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;
|
|
database.createLocally = true;
|
|
config = {
|
|
overwriteProtocol = "https";
|
|
dbtype = "pgsql";
|
|
adminpassFile = config.sops.secrets.nextcloud.path;
|
|
adminuser = "admin-root";
|
|
defaultPhoneRegion = "US";
|
|
};
|
|
};
|
|
#_file
|
|
}
|