global/nix: move into universe.packages
This commit is contained in:
parent
6ee7de5eb4
commit
fd39e8cedf
1 changed files with 18 additions and 19 deletions
|
@ -57,27 +57,26 @@ with lib;
|
||||||
allowUnfree = true;
|
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 = {
|
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 =
|
shellAliases =
|
||||||
let ifSudo = mkIf config.security.sudo.enable;
|
let ifSudo = mkIf config.security.sudo.enable;
|
||||||
in
|
in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue