this post was submitted on 31 Jan 2026
209 points (98.6% liked)

Linux

12001 readers
394 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Steamymoomilk@sh.itjust.works 29 points 5 days ago* (last edited 5 days ago) (10 children)

Nixos user here for 4 years.

Yep

[–] Ephera@lemmy.ml 5 points 5 days ago (9 children)

Seems like there's now an option for that in Home-Manager: https://nix-community.github.io/home-manager/options.xhtml#opt-wayland.windowManager.sway.config.keybindings

But yeah, if you tried to use it when Sway wasn't yet well-supported, or just want to use some obscure software in general, then yeah, things can get more complicated...

[–] MonkderVierte@lemmy.zip 0 points 4 days ago (1 children)

or just want to use some obscure software in general, then yeah, things can get more complicated...

Well thanks, so NixOS is not for me then.

[–] Ephera@lemmy.ml 3 points 4 days ago* (last edited 4 days ago)

Oof, I was just talking about making things declarative there. If you want to configure it the old-fashioned way, like you would on other distros, then those difficulties don't apply.

In more general terms, though, it's a bit of a double-edged sword. The Nix package repository has more packages than other package managers: https://repology.org/repositories/graphs

So, the chance of finding an obscure software, that's already packaged, is rather high.
Here's the online package search, if you want to check the availability of some of the obscure software you use: https://search.nixos.org/packages

But then, yeah, the flipside is that, from what I understand, you can't just download a random executable off of the internet and run it, because of the Filesystem Hierarchy Standard not being adhered to, as the post also mentions.
You can set up Flatpaks, and I believe AppImages would work, because those also live in their own FUSE filesystem. Well, and there is ways to emulate the FHS layout to get normal applications to run, too.

But yeah, way out of my field of expertise there. I have only one software installed which isn't packaged for Nix, which is a program I wrote myself.
And to get sufficient FHS emulation for that, I just needed this line in my config:

programs.nix-ld.enable = true;

More complex programs will need a bit of extra configuration: https://wiki.nixos.org/wiki/Nix-ld

(I could also add a flake.nix file into my software's repository, though, which would make it so it could be installed straight from my repo, as if it was packaged.)

load more comments (7 replies)
load more comments (7 replies)