nixos-configs/devices/cluster/modules/pacemaker/default.nix
matt1432 ee69aab869
All checks were successful
Discord / discord commits (push) Has been skipped
feat(cluster): add network share for files
2024-01-23 16:15:40 -05:00

44 lines
750 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
};
environment.systemPackages = with pkgs; [nfs-utils];
systemd.mounts = [
{
type = "nfs";
mountConfig = {
Options = "noatime";
};
what = "servivi:/caddy";
where = "/var/lib/caddy";
requiredBy = ["caddy.service"];
}
];
}