diff --git a/config/navi/christoph.cheat b/config/navi/christoph.cheat index df410896..0bc0dfa3 100644 --- a/config/navi/christoph.cheat +++ b/config/navi/christoph.cheat @@ -2,23 +2,23 @@ ; 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 +% nh # Rebuild the system using nh nh os $ mode: echo -e "switch\nbuild\nboot" -% nixos +% nh # Clean the nix store nh clean $ mode: echo -e "all\nuser" -% nixos +% nix # Find out why a package is included in the closure when building the system derivation nix why-depends /run/current-system nixpkgs# @@ -32,35 +32,39 @@ $ executable: bash -c "compgen -c" ldd $(readlink -f $(which )) $ executable: bash -c "compgen -c" -% nixos +% nix-tree # Browse closures in the nix store sorted by size nix-tree -% nixos +% nps # Search in nixpkgs nps -e "" -% nixos +% nix-search-tv # Search in nixpkgs, nur, nixos and home-manager nix-search-tv print --indexes 'nixos,home-manager,nixpkgs,nur' | fzf --preview 'nix-search-tv preview {}' --scheme history -% nixos +% nvd # Compare the current NixOS generation to another one nvd diff /run/current-system ./result -% nixos +% nurl # Generate a nix fetcher section nurl "" -% nixos +% nurl # Generate a nix fetcher section for a specific revision nurl "" "" -% nixos +% nix-alien # Run an unpatched binary on NixOS nix-alien-ld -- $ binary: eza -f -1 +% nix repl +# Enter a repl with loaded NixFlake +nix repl --extra-experimental-features "flakes" /home/christoph/NixFlake + ; =========================== ; SYSTEMD ; ===========================