Skip to content

[unix_distributions][nixos] Initial commit - #1226

Merged
LukeShortCloud merged 2 commits into
mainfrom
nixos
Aug 14, 2026
Merged

[unix_distributions][nixos] Initial commit#1226
LukeShortCloud merged 2 commits into
mainfrom
nixos

Conversation

@LukeShortCloud

Copy link
Copy Markdown
Owner

No description provided.

@LukeShortCloud

Copy link
Copy Markdown
Owner Author

@ShadowApex This is my first pass at initial notes and important things to know about NixOS. Does this look accurate? Is there any other newbie/beginner information I'm missing here? My idea for the second pass is to start explaining flakes.

@ShadowApex

Copy link
Copy Markdown

@ShadowApex This is my first pass at initial notes and important things to know about NixOS. Does this look accurate? Is there any other newbie/beginner information I'm missing here? My idea for the second pass is to start explaining flakes.

Looks good! Very nice notes!

One thing I might also recommend for beginners is enabling something called nix-ld. By default on NixOS, you can't just run a random Linux binary that was built for a normal distribution. This is due to NixOS not using a standard filesystem hierarchy (e.g. there is no /lib/ld-linux.so.2). But if you enable nix-ld, then there will be a compatibility layer that's enabled that will let you run random Linux binaries you might download from the internet.

Here's how I enable it in my configuration:

  services.envfs.enable = true;
  programs.nix-ld = {
    enable = true;
    libraries = pkgs.steam-run.args.multiPkgs pkgs;
  };

@LukeShortCloud

Copy link
Copy Markdown
Owner Author

Oh, interesting. This must be related to how a few things are also needed for AppImages and Flatpaks to work. But, in this case, it's for random binaries.

Thanks for the suggestion, I'll have to play around with that and document it!

How to enable and use it to help run non-NixOS Linux binaries.
@LukeShortCloud

Copy link
Copy Markdown
Owner Author

Thanks again. I added notes about nix-ld.

@LukeShortCloud
LukeShortCloud merged commit cb41841 into main Aug 14, 2026
1 check passed
@LukeShortCloud
LukeShortCloud deleted the nixos branch August 14, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants