1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/modules/server/nextcloud.nix
Stefan Ellmauthaler 54327482e3
Redesign/flake (#4)
Redesign flake and update to 22.05
2022-06-10 21:32:48 +02:00

28 lines
737 B
Nix

{ config, pkgs, lib, ... }:
with lib;{
config =
let
cfg = config.elss.server.nextcloud;
in
mkIf cfg.enable {
elss.server.sql.enable = mkDefault;
services.nextcloud = {
enable = true;
hostName = "cloudstore.ellmauthaler.net";
https = true;
config = {
dbtype = "mysql";
dbuser = "cloudstore_user";
dbpassFile = "/run/secrets/cloudstore_user";
adminuser = "storemin";
adminpassFile = "/run/secrets/storemin";
};
};
sops.secrets = {
storemin.sopsFile = ../../secrets/server.yaml;
cloudstore_user.sopsFile = ../../secrets/server.yaml;
};
};
}