nixos-configs/devices/cluster/modules/pacemaker/default.nix
matt1432 a2d07c2f87
All checks were successful
Discord / discord commits (push) Has been skipped
fix(nfs): support nfs on boot
2024-01-23 17:58:48 -05:00

44 lines
788 B
Nix

{pkgs, ...}: {
imports = [
./options.nix
../corosync.nix
../caddy.nix
];
# TODO: update script
services = {
pacemaker = {
enable = true;
resources = {
"caddy" = {
enable = true;
virtualIps = [
{
id = "main";
interface = "eno1";
ip = "10.0.0.130";
}
];
};
};
};
rpcbind.enable = true; # needed for NFS
};
boot.supportedFilesystems = ["nfs"];
environment.systemPackages = with pkgs; [nfs-utils];
systemd.mounts = [
{
type = "nfs";
mountConfig = {
Options = "noatime";
};
what = "servivi:/caddy";
where = "/var/lib/caddy";
requiredBy = ["caddy.service"];
}
];
}