mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
unix ports cool
This commit is contained in:
parent
2fc4baa6ee
commit
d47fc2217a
5 changed files with 37 additions and 62 deletions
|
|
@ -3,19 +3,10 @@ _: {
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
sops.secrets = {
|
||||
sql_nextcloud = {
|
||||
owner = "nextcloud";
|
||||
group = "nextcloud";
|
||||
};
|
||||
nextcloud = {
|
||||
owner = "nextcloud";
|
||||
group = "nextcloud";
|
||||
};
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /persist/services/nextcloud - nextcloud nextcloud - -"
|
||||
];
|
||||
sops.secrets.nextcloud.owner = "nextcloud";
|
||||
|
||||
users.users.nextcloud.extraGroups = ["postgres"];
|
||||
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud27;
|
||||
|
|
@ -23,18 +14,13 @@ _: {
|
|||
hostName = "next.gerg-l.com";
|
||||
autoUpdateApps.enable = false;
|
||||
enableBrokenCiphersForSSE = false;
|
||||
database.createLocally = true;
|
||||
config = {
|
||||
dbtype = "pgsql";
|
||||
dbhost = "/run/postgresql";
|
||||
dbpassFile = config.sops.secrets.sql_nextcloud.path;
|
||||
adminpassFile = config.sops.secrets.sql_nextcloud.path;
|
||||
adminpassFile = config.sops.secrets.nextcloud.path;
|
||||
adminuser = "admin-root";
|
||||
defaultPhoneRegion = "US";
|
||||
};
|
||||
};
|
||||
systemd.services."nextcloud-setup" = {
|
||||
requires = ["postgresql.service"];
|
||||
after = ["postgresql.service"];
|
||||
};
|
||||
_file = ./nextcloud.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue