nixos/services.pacemaker: remove with lib;
This commit is contained in:
parent
980a655feb
commit
7b141e6b8f
@ -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 = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user