nixos/services.salt.master: remove with lib;

This commit is contained in:
Felix Buehler
2024-08-30 00:30:38 +02:00
parent 9856183d59
commit 3e47355b3f
+4 -7
View File
@@ -1,7 +1,4 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.services.salt.master;
@@ -20,16 +17,16 @@ in
{
options = {
services.salt.master = {
enable = mkEnableOption "Salt configuration management system master service";
configuration = mkOption {
type = types.attrs;
enable = lib.mkEnableOption "Salt configuration management system master service";
configuration = lib.mkOption {
type = lib.types.attrs;
default = {};
description = "Salt master configuration as Nix attribute set.";
};
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
environment = {
# Set this up in /etc/salt/master so `salt`, `salt-key`, etc. work.
# The alternatives are