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