/nix.fish

Fish abbreviations and utility functions to use with the nix package manager

Primary LanguageShell

nix.fish

Some abbreviations and functions to make it easier to work with the nix package manager, and the NixOS ecosystem.

Installation

fisher install kpbaks/nix.fish

Abbreviations

abbr -a n nix
abbr -a nd nix develop --command fish
abbr -a nf nix flake
abbr -a nfc nix flake check
abbr -a nfi nix flake init
abbr -a nfmd nix flake metadata
abbr -a np nix profile
abbr -a npl nix profile list
abbr -a npi --set-cursor "nix profile install nixpkgs#%"
abbr -a npu nix profile update "'.'"
abbr -a nr nix run
abbr -a nrp nix repl
abbr -a ns -f abbr_nix_search --set-cursor
abbr -a nsh nix shell
abbr -a hm home-manager
abbr -a hms home-manager switch
abbr -a nosrs -f abbr_nixos_rebuild_switch

Functions

json2nix

nix2json

toml2nix

nix2toml