From b2edbe24a71bfe43b6aac59e3610f9e829822878 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Fri, 11 Nov 2022 16:11:33 +0100 Subject: [PATCH] add some navi cheats --- config/navi/christoph.cheat | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/config/navi/christoph.cheat b/config/navi/christoph.cheat index b402cef5..39cf4bf6 100644 --- a/config/navi/christoph.cheat +++ b/config/navi/christoph.cheat @@ -1,4 +1,27 @@ -% nixos, nix-store, link +; NixOS +% nixos, nixos-rebuild +# Rebuild a flake system derivation +sudo nixos-rebuild --flake .# +$ type: echo -e "switch\nbuild\nboot" +$ flake: echo -e "nixinator\nnixtop" + +% nixos, nix-store, closure, dependency +# Find out why a package is included in the closure when building the system derivation +nix why-depends /run/current-system nixpkgs# + +; Nix-Store + +% nixos, nix-store, storepath, link # Find the storepath of an executable in the users path readlink -f $(which ) + +% nixos, nix-store, storepath, libraries +# Find the wanted dynamic libraries of an executable in the users path +ldd $(readlink -f $(which )) + +; Shell + +% shell, process +# Launch a detached process with suppressed output + &>/dev/null &