nixos/services.pacemaker: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-28 21:18:55 +02:00 committed by Jörg Thalheim
parent 980a655feb
commit 7b141e6b8f

View File

@ -1,19 +1,17 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.pacemaker;
in
{
# interface
options.services.pacemaker = {
enable = mkEnableOption "pacemaker";
enable = lib.mkEnableOption "pacemaker";
package = mkPackageOption pkgs "pacemaker" { };
package = lib.mkPackageOption pkgs "pacemaker" { };
};
# implementation
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
assertions = [ {
assertion = config.services.corosync.enable;
message = ''