diff --git a/nixos/modules/services/admin/salt/minion.nix b/nixos/modules/services/admin/salt/minion.nix index 5d4efc6541c7..fde51a06769a 100644 --- a/nixos/modules/services/admin/salt/minion.nix +++ b/nixos/modules/services/admin/salt/minion.nix @@ -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