nixos-configs/devices/cluster/modules/pacemaker.nix
matt1432 c3df63c479
All checks were successful
Discord / discord commits (push) Successful in 29s
feat(servers): setup corosync
2024-01-21 22:11:38 -05:00

19 lines
478 B
Nix

{nixpkgs-pacemaker, ...}: let
pacemakerPath = "services/cluster/pacemaker/default.nix";
in {
# FIXME: https://github.com/NixOS/nixpkgs/pull/208298
nixpkgs.overlays = [
(final: prev: {
inherit
(nixpkgs-pacemaker.legacyPackages.x86_64-linux)
pacemaker
ocf-resource-agents
;
})
];
disabledModules = [pacemakerPath];
imports = ["${nixpkgs-pacemaker}/nixos/modules/${pacemakerPath}"];
services.pacemaker.enable = true;
}