nixos-configs/devices/cluster/modules/pacemaker/default.nix

45 lines
788 B
Nix
Raw Normal View History

{pkgs, ...}: {
2024-01-22 22:47:31 -05:00
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";
}
];
};
2024-01-22 22:47:31 -05:00
};
};
rpcbind.enable = true; # needed for NFS
};
2024-01-23 17:58:48 -05:00
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"];
}
];
}