nix/hosts/nextcloud/default.nix
2025-01-08 14:33:52 +01:00

42 lines
730 B
Nix

{
config,
pkgs,
lib,
...
}:
{
age.secrets = {
nextcloud-admin-pwd = {
file = ../../secrets/nextcloud-admin-pwd.age;
owner = "nextcloud";
group = "nextcloud";
mode = "770";
};
};
my = {
utils = {
commons.enable = true;
lxc-standard.enable = true;
};
services.nextcloud = {
enable = true;
adminPasswordFile = config.age.secrets.nextcloud-admin-pwd.path;
proxy.domain = "tegola.pro";
};
networking.nas-samba-share = {
enable = true;
allowUsers = [ "nextcloud" ];
};
virtualisation.proxmox.enable = true;
};
# Extra packages
environment.systemPackages = with pkgs; [ ];
system.stateVersion = "24.05";
}