mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
update/format configuration for jack
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
{ pkgs, config, ... }:
|
||||
let domain = "cloud.hadi.diy";
|
||||
# Nextcloud is a self-hosted productivity platform that allows you to store and share files, manage calendars, contacts, and more.
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
domain = "cloud.hadi.diy";
|
||||
adminuser = "hadi";
|
||||
in {
|
||||
services = {
|
||||
nginx.virtualHosts = {
|
||||
@@ -19,32 +25,33 @@ in {
|
||||
https = true;
|
||||
autoUpdateApps.enable = true;
|
||||
settings = {
|
||||
trusted_domains = [ domain ];
|
||||
trusted_domains = [domain];
|
||||
default_phone_region = "FR";
|
||||
overwriteprotocol = "https";
|
||||
};
|
||||
extraAppsEnable = true;
|
||||
extraApps = with config.services.nextcloud.package.packages.apps; {
|
||||
# List of apps we want to install and are already packaged in
|
||||
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
|
||||
# inherit calendar contacts notes onlyoffice tasks cookbook qownnotesapi;
|
||||
inherit cookbook;
|
||||
# Custom app example.
|
||||
# socialsharing_telegram = pkgs.fetchNextcloudApp rec {
|
||||
# url =
|
||||
# "https://github.com/nextcloud-releases/socialsharing/releases/download/v3.0.1/socialsharing_telegram-v3.0.1.tar.gz";
|
||||
# license = "agpl3";
|
||||
# sha256 = "sha256-8XyOslMmzxmX2QsVzYzIJKNw6rVWJ7uDhU1jaKJ0Q8k=";
|
||||
# };
|
||||
};
|
||||
# extraApps = with config.services.nextcloud.package.packages.apps; {
|
||||
# List of apps we want to install and are already packaged in
|
||||
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
|
||||
# inherit calendar contacts notes onlyoffice tasks cookbook qownnotesapi;
|
||||
# inherit cookbook;
|
||||
# Custom app example.
|
||||
# socialsharing_telegram = pkgs.fetchNextcloudApp rec {
|
||||
# url =
|
||||
# "https://github.com/nextcloud-releases/socialsharing/releases/download/v3.0.1/socialsharing_telegram-v3.0.1.tar.gz";
|
||||
# license = "agpl3";
|
||||
# sha256 = "sha256-8XyOslMmzxmX2QsVzYzIJKNw6rVWJ7uDhU1jaKJ0Q8k=";
|
||||
# };
|
||||
# };
|
||||
config = {
|
||||
dbtype = "pgsql";
|
||||
adminuser = "hadi";
|
||||
adminuser = adminuser;
|
||||
adminpassFile = config.sops.secrets.nextcloud-pwd.path;
|
||||
};
|
||||
# Suggested by Nextcloud's health check.
|
||||
phpOptions."opcache.interned_strings_buffer" = "16";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
sops.secrets.nextcloud-pwd.path = "/etc/nextcloud/pwd.txt";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user