this post was submitted on 03 Aug 2026
53 points (98.2% liked)
Linux
66807 readers
344 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments

Good point. I forgot to add that to my list but I did make one alias
reflakeforsudo nixos-rebuild switch --flake ~/nixos-dotfiles#nixos-werecatAfter I had to type this out for IDK how many times (and forgot about CTRL+R) it quickly got annoying :)Now that you mentioned Ctrl+R, also check out program named atuin. It makes the command search a bit more friendly, and you can also optionally sync command history. It has NixOS options, of course.
IDK why the Atuin config file that got generated is commented out in it's entirety and nothing works. Right now I can't be bothered to go trough the entire config and enable things one by one. From what I've tried nothing works and IDK why. CTRL+R does not invoke the Atuin search it still invokes the old one. I uncommented everything and still nothing seems to work. The atuin definitely responds to my commands in terminal though. I did run
atuin setupas well.edit: OK, I've spent another 30min+ on this and I still can't understand why it does not work. I've adjusted config, even got a custom config from other users and I can't seem to be able to invoke it in the terminal besides using it's commands which are the only thing that seem to work. I was able to make an account and login via terminal as well.
edit2: Figured it out! I've tried
mcflyand encountered the same issue. Turns out I needed to edit.bashrcwhich is read only even for sudo and even after chmod. So after beating my head against a wall I’ve realized that.bashrcis symlinked to myhome.nixand that's where I need to place my edits. So nowmcflyruns fine and I'm assuming Atuin would as well since after looking at github I pretty much had to do the same edit for both.You don't need to add mcfly bash integration to your
.bashrcmanually. Remove it fromhome.packagesand instead enable the home-manager module withprograms.mcfly.enable = true;. That's all you need to do, it has aenableBashIntegrationsetting that's true by default. Same for atuin,programs.atuin.enable = true;is enough.It's an habit you have to learn when switching to nix, check first if there is a module for the program you want to install before resorting to
home.packagesorenvironment.systemPackages.I thought that I've already replied but apparently not... Thanks for this. I did not realize it's this simple. Looks like I've found one of the many instances where I can make this work differently while it may not be optimal to do so :)