nixos/hosts/vm/nextcloud/default.nix

42 lines
733 B
Nix

{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./networking.nix
../../../modules
../../../modules/services/nextcloud.nix
];
networking.hostName = "nextcloud";
boot.loader.grub.devices = [ "/dev/sda" ];
fileSystems."/home-adh" = {
device = "172.16.4.2:/pool/home";
fsType = "nfs";
};
services.autofs = {
enable = true;
autoMaster = ''
/home-nextcloud /etc/auto.master.d/home-nextcloud.sh -t60
'';
};
programs.fuse.userAllowOther = true;
systemd.services.autofs = {
path = with pkgs; [
bash
bindfs
gawk
logger
openldap
];
};
environment.systemPackages = with pkgs; [ bindfs ];
system.stateVersion = "25.05";
}