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, ... }: { config, lib, pkgs, ... }:
with lib;
let let
cfg = config.services.pacemaker; cfg = config.services.pacemaker;
in in
{ {
# interface # interface
options.services.pacemaker = { options.services.pacemaker = {
enable = mkEnableOption "pacemaker"; enable = lib.mkEnableOption "pacemaker";
package = mkPackageOption pkgs "pacemaker" { }; package = lib.mkPackageOption pkgs "pacemaker" { };
}; };
# implementation # implementation
config = mkIf cfg.enable { config = lib.mkIf cfg.enable {
assertions = [ { assertions = [ {
assertion = config.services.corosync.enable; assertion = config.services.corosync.enable;
message = '' message = ''