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

This commit is contained in:
Felix Buehler 2024-08-30 00:46:33 +02:00
parent 503fd3014a
commit 5a670b332a

View File

@ -1,7 +1,4 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.services.salt.minion;
@ -21,9 +18,9 @@ in
{
options = {
services.salt.minion = {
enable = mkEnableOption "Salt configuration management system minion service";
configuration = mkOption {
type = types.attrs;
enable = lib.mkEnableOption "Salt configuration management system minion service";
configuration = lib.mkOption {
type = lib.types.attrs;
default = {};
description = ''
Salt minion configuration as Nix attribute set.
@ -34,7 +31,7 @@ in
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
environment = {
# Set this up in /etc/salt/minion so `salt-call`, etc. work.
# The alternatives are