global/nix: move into universe.packages

This commit is contained in:
Infinidoge 2024-01-30 17:57:54 -05:00
parent 6ee7de5eb4
commit fd39e8cedf
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -57,27 +57,26 @@ with lib;
allowUnfree = true;
};
universe.packages = with pkgs; [
comma
nix-diff
nix-du
nix-index
nix-tree
nixfmt
nixpkgs-fmt
(writeScriptBin "wherenix" ''
#!/usr/bin/env bash
${unixtools.whereis}/bin/whereis "''${@}" \
| ${gawk}/bin/awk '{ print substr($0, length($1)+2) }' \
| ${findutils}/bin/xargs -r ${coreutils}/bin/readlink -f \
| ${coreutils}/bin/sort \
| ${coreutils}/bin/uniq
'')
];
environment = {
systemPackages = with pkgs; [
comma
nix-diff
nix-du
nix-index
nix-tree
nixfmt
nixpkgs-fmt
(writeScriptBin "wherenix" ''
#!/usr/bin/env bash
${unixtools.whereis}/bin/whereis "''${@}" \
| ${gawk}/bin/awk '{ print substr($0, length($1)+2) }' \
| ${findutils}/bin/xargs -r ${coreutils}/bin/readlink -f \
| ${coreutils}/bin/sort \
| ${coreutils}/bin/uniq
'')
];
shellAliases =
let ifSudo = mkIf config.security.sudo.enable;
in