Adding packages to salt-master/minion path with overlay

Hi there,
The salt-master and salt-minion service using package salt is a bit crippled because the attribute path contains only references to parts of util-linux. I would like to use for instance git or rsync but that gives errors that salt can’t find the bin files. This is the path of the salt-master service:


I tried to use overlay within the nixos configuration.nix file, I added only the salt-master part:

# Overrides
  nixpkgs.overlays = [
    (final: prev: { ={
        path = with pkgs; [
          util-linux  # for dmesg

The nixos-rebuild switch gives errors:

      … while evaluating attribute 'path' of derivation 'nixos-rebuild'

         at /nix/store/wdzp0hmh5lbykyvchd1wihszcyab78qv-nixos-23.11/nixos/pkgs/os-specific/linux/nixos-rebuild/default.nix:25:3:

           24|   nix_aarch64_linux = fallback.aarch64-linux;
           25|   path = lib.makeBinPath [ coreutils gnused gnugrep jq util-linux ];
             |   ^
           26|   nativeBuildInputs = [

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: Dependency is not of a valid type: element 6 of buildInputs for util-linux
building Nix...
building the system configuration...
       … while calling the 'head' builtin

         at /nix/store/wdzp0hmh5lbykyvchd1wihszcyab78qv-nixos-23.11/nixos/lib/attrsets.nix:922:11:

          921|         || pred here (elemAt values 1) (head values) then
          922|           head values
             |           ^
          923|         else

       … while evaluating the attribute 'value'

         at /nix/store/wdzp0hmh5lbykyvchd1wihszcyab78qv-nixos-23.11/nixos/lib/modules.nix:807:9:

          806|     in warnDeprecation opt //
          807|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          808|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: Dependency is not of a valid type: element 2 of buildInputs for procps

My metadata for nixos is:

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.86, NixOS, 23.11 (Tapir), 23.11.6359.53a2c32bc66f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos-23.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I would appreciate it if someone looked into it