mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-02-22 12:55:13 +08:00
feat: adds nextcloud (works!)
This commit is contained in:
parent
7671014026
commit
185fc681f5
1 changed files with 47 additions and 12 deletions
|
|
@ -1,19 +1,33 @@
|
|||
{ ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.nextcloud = {
|
||||
enable = false;
|
||||
config.dbtype = "sqlite";
|
||||
configureRedis = true;
|
||||
home = "/home/liv/nextcloud";
|
||||
config.adminpassFile = "/run/nextcloud/adminpassFile";
|
||||
maxUploadSize = "25G";
|
||||
enable = true;
|
||||
package = pkgs.nextcloud32;
|
||||
hostName = "cloud.liv.town";
|
||||
# appstoreEnable = true;
|
||||
https = true;
|
||||
hostName = "dandelion.srv.liv.town";
|
||||
maxUploadSize = "10G";
|
||||
extraApps = {
|
||||
inherit (config.services.nextcloud.package.packages.apps)
|
||||
news
|
||||
contacts
|
||||
calendar
|
||||
groupfolders
|
||||
notify_push
|
||||
;
|
||||
};
|
||||
config = {
|
||||
adminuser = "root";
|
||||
adminpassFile = config.sops.secrets.nextcloudPassword.path;
|
||||
dbtype = "sqlite";
|
||||
};
|
||||
configureRedis = true;
|
||||
settings = {
|
||||
trusted_domains = [
|
||||
"dandelion.srv.liv.town"
|
||||
"files.dandelion.srv.liv.town"
|
||||
];
|
||||
mail_smtphost = "smtp.migadu.com";
|
||||
mail_smtpport = 465;
|
||||
mail_smtpname = "notifications@liv.town";
|
||||
mail_smtpauth = true;
|
||||
trusted_domains = [ "cloud.liv.town" ];
|
||||
enabledPreviewProviders = [
|
||||
"OC\\Preview\\BMP"
|
||||
"OC\\Preview\\GIF"
|
||||
|
|
@ -29,4 +43,25 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
||||
forceSSL = true;
|
||||
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
||||
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
||||
};
|
||||
systemd.services.nextcloud-custom-config = {
|
||||
path = [
|
||||
config.services.nextcloud.occ
|
||||
];
|
||||
script = ''
|
||||
nextcloud-occ theming:config name "livnet"
|
||||
# nextcloud-occ theming:config description "liv to your fullest"
|
||||
nextcloud-occ theming:config url "https://cloud.liv.town";
|
||||
# nextcloud-occ theming:config privacyUrl "https://liv.town/privacy";
|
||||
nextcloud-occ theming:config color "#3253a5";
|
||||
'';
|
||||
# nextcloud-occ theming:config logo ${./logo.png}
|
||||
after = [ "nextcloud-setup.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue