Hi all!
I’m a little new to NixOS, long time linux user, I got my first linux running with the mach microkernel on a powermacintosh 6100, I was there when gentoo lost their wiki. That was when I moved to arch linux. Anyhow, I followed Wil T’s tutorials and kind of wrote my script before finishing his tutorial. I’ve kind of diverged from him entirely at this point and have my own opinionated structure of my dotfiles, of which I’m going to call ~/.nx from here on out. Anyhow my tool is called nx because it is one letter less than nix. It is here I’d like comments etc from the community.
➜ nx
nx - one less letter to type than nix
nx is an opinionated tool I use to manage my NixOS installations.
by default it uses a directory in your home '~/.nx'
USAGE:
apply-colmena: nx ac GROUP
apply-system: nx as
git-commit-am: nx am
apply-user: nx au
full-auto: nx auto
edit-config: nx ec
edit-flake: nx ef
edit-group-flake: nx ef GROUP
edit-user-config: nx eu
garbage-collector: nx gc
optimize+gc: nx o
search PACKAGE: nx s PACKAGE
update-system: nx us
update-user: nx uu
I was thinking more of how the kubectl plugin works for oh-my-zsh, but I’m certain you, rightly, point out the true inspirations for that in itself. In any case, I chose to write this in plain bourne shell so it should work on a very minimal setup without installing fancy shells, or entire operating systems (in the case of emacs ).