From 6eb7a1cb19b6ac0cf88580b447c502a0a89edd47 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Wed, 23 Apr 2025 04:09:52 +0200 Subject: [PATCH] nixos/shell: add `nix-convert-hash` alias --- nix-os/shell.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix-os/shell.nix b/nix-os/shell.nix index e30c9a7..3c6833a 100644 --- a/nix-os/shell.nix +++ b/nix-os/shell.nix @@ -27,12 +27,18 @@ in ]; config = { - environment.systemPackages = with pkgs; [ + environment.systemPackages = ( with pkgs; [ aliasDrag rangerGit ripgrep kitty zoxide + ]) ++ [ + ( + pkgs.writeScriptBin "nix-convert-hash" '' + ${lib.getExe' config.nix.package "nix"} --extra-experimental-features "nix-command" hash convert "$@" + '' + ) ]; programs.bash.shellInit = ''