Every time I want to edit and/or rebuild my nixos configuration, I find myself performing the same sequence of actions:
- open a terminal
- enter password
I was playing around with ways to script this so that I could bind it to a key in my xmonad config, and came up with this little composition:
alacritty -e bash -c 'sudo --login bash -c "cd /etc/nixos ; exec bash"'