Alt+Q. Ctrl+Space, then n.
That’s me going from whatever I’m doing to my terminal, and from my terminal to Neovim, open in the folder I’m already in. I don’t think about it any more. My hands just do it, and they do it the same way on my laptop as they do on my home server, because both machines are built from the same config. Here’s the line that makes the first half happen:
"Alt+Q" = _: {
props.hotkey-overlay-title = "Open a Terminal: Ghostty";
props.repeat = false;
content.spawn-sh = "nirius focus-or-spawn --app-id ghostty ghostty";
};If Ghostty is already open, it gets focus. If it isn’t, it starts. Small thing. But it’s the kind of small thing I used to lose every time I set up a new machine, and this post is about why I stopped losing them.
The idea didn’t come from Nix. It came from The Pragmatic Programmer, which is the book I’d give every new developer I meet if I could. The part that stuck with me was one of the authors talking about keeping their dotfiles managed, so that if someone spilled coffee on their laptop they’d be back up and working in a few hours. I read that and thought, I want that.
Because what I had was Windows. Every so often I’d reformat the main drive and then spend ages putting everything back by hand: the apps I needed, the apps I wanted, every little setting. And there was always one setting that got dropped.
I did try the normal fix first. A repo of dotfiles, some symlinks, the usual. It helped, but keeping it all in sync and remembering what was installed where turned into its own job. It was a lot of mental burden for something that was meant to take mental burden away.
Nix solved the same problem, just in a much more programmatic way. You don’t install things and then try to remember you installed them. You describe the machine, every package, setting and keybind, and Nix builds it from that description. So I went straight from Windows to NixOS, and my desktop became a Git repo.
I won’t pretend the jump was easy. The learning curve was a real struggle. For a while I also had a Mac for work in the same config, and that had its own problems. Keeping things in sync across very different operating systems was hard, and macOS just doesn’t have great support for the keyboard-driven way I like to move around with niri. Since then I’ve cut it back to two Linux machines, my laptop and a home server, and it’s much simpler for it.
That keyboard-driven bit matters more to me than it might sound.
I used to work across multiple monitors, and I’ve moved away from it on purpose. Now it’s just me and my laptop keyboard. I found more screens meant more cognitive load: more places to look and more to keep track of. With one screen and good keyboard navigation, it all turns into muscle memory over time.
The best way I can explain it is Daniel Kahneman’s Thinking, Fast and Slow. System 1 is the fast, automatic thinking you don’t notice yourself doing. System 2 is the slow, deliberate kind that takes effort. Every time I have to stop and think about where my terminal is, that’s System 2 getting dragged into something that should be System 1. A good setup moves as much of that as possible into the fast lane. Nix is how I make sure the fast lane is the same on every machine I sit down at.
There’s another side to it I didn’t expect to like as much as I do. Because the whole setup is code, changing my mind is cheap. I ran Hyprland and waybar for a while before moving to niri, and those old configs are still sitting in an archive folder in the repo. Recently I added Steam, decided I didn’t want it, and took it back out. Nothing lingers. Honestly, those retired setups could probably just live in the Git history, but I like having them there to look back on.
So would I tell every developer to switch? No. It depends on the person. Some people think the cognitive load of learning Nix is too much, and some just don’t see the value in this level of customisation, and that’s fair enough. But if you enjoy a challenge and you’re willing to pay the cost up front, it’s absolutely worth it. The challenge is rewarding, and the results speak for themselves.
And if someone does spill coffee on my laptop, I’ll be annoyed about the laptop. Not about the setup.

