I should commit more frequently 🫣
This commit is contained in:
parent
d7e82621c8
commit
f1483e45f0
70 changed files with 2344 additions and 599 deletions
27
modules/nextcloud/default.nix
Normal file
27
modules/nextcloud/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.services.nextcloud;
|
||||
in {
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /mnt/raid/nextcloud 770 nextcloud nextcloud"
|
||||
];
|
||||
|
||||
ccr.extraGroups = ["nextcloud"];
|
||||
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud26;
|
||||
database.createLocally = true;
|
||||
home = "/mnt/raid/nextcloud";
|
||||
hostName = "nextcloud.aciceri.dev";
|
||||
config = {
|
||||
adminpassFile = config.age.secrets.nextcloud-admin-pass.path;
|
||||
overwriteProtocol = "https";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [80];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue