nextcloud minimal

This commit is contained in:
ahtlon
2024-11-26 21:00:54 +01:00
committed by kalipso
parent 0239733e62
commit 9afa8987e7
4 changed files with 133 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
with lib;
{
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets = {
nextcloudAdminPass = {};
};
networking = {
hostName = mkDefault "discourse";
useDHCP = false;
nameservers = [ "1.1.1.1" ];
};
imports = [
../modules/malobeo_user.nix
../modules/sshd.nix
../modules/minimal_tools.nix
../modules/autoupdate.nix
];
services.nextcloud = {
enable = true;
package = pkgs.nextcloud30;
hostName = "10.0.0.11";
config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
system.stateVersion = "22.11"; # Did you read the comment?
}