r/NixOS • • 2h ago

My perfect Nix Miku config

Thumbnail gallery
54 Upvotes

Hey guys, wanted to jump into this to and post my starting nix os config. Curently im using some random nothing os inspired dotfiles wich use quickshell, i had edited them a bit for my own liking like adding the super space menu like in omarchy, yes i know a lot of people speak not so good about it but i needed only these app install web install functions so had to also have few plugins for my home lab to see its performance without conecting via ssh. Hope yall will like this setup if you got any questions ask.


r/NixOS • • 4h ago

Rootless containers with quadlet-nix and home manager

5 Upvotes

im trying to setup rootless containers but everytime im rebuilding im getting an error that the service unit cant be found and i dont know if i messed up some config or if its an issue with flake-parts and/or import tree. its imported into home-manager.users.arsna = { imports = [self.homeModules.caddy];};
i tried the same caddy config with a rootfull container and it worked even though it the containers configs are rootless. anyone have any tips or solutions?

i have a podman.nix file with the following

{ inputs, ... }: {
flake.modules.nixos.podman = { pkgs, ... }: {
imports = [ inputs.quadlet-nix.nixosModules.quadlet ];
boot.kernel.sysctl = {"net.ipv4.ip_unprivileged_port_start" = 80;};
virtualisation = {
podman = {
enable = true;
autoPrune = {
enable = true;
flags = [ "--all" ];
dates = "daily";
};
extraPackages = with pkgs; [ crun ];
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
quadlet.enable = true;
containers = {
enable = true;
containersConf.rootless.settings = {...};
storage.rootless.settings = {
storage = {
graphroot = "/home/arsna/.local/share/containers/storage";
runroot = "/run/user/1000/containers";
...};};};};};};}

and a caddy.nix with the following

{inputs, ... }: {
flake.homeModules.caddy = {
imports = [inputs.quadlet-nix.homeManagerModules.quadlet];
virtualisation.quadlet.containers.caddy = {
autoStart = true;
unitConfig = {
Description = "caddy reverse proxy";
Wants = "podman-auto-update.timer";
};
serviceConfig = {
Restart = "always";
};
containerConfig = {
userns = "keep-id";
name = "caddy";
volumes = [ ... ];
...
};};}


r/NixOS • • 8h ago

How beginner-friendly is Raspberry Pi 5 supported?

8 Upvotes

I want to buy a low-power microcomputer and put NixOs on it. I tried doing that on a Pi2B and the experience was terrible and I ultimately failed given that it was not properly supported. Now I'm considering buying the Pi 5 since it seems to get official support on nixos-unstable. Yet, I read conflicting experiences on the support of the Pi 5 spread across years, seemingly due to Raspberry being difficult as a whole.

So my main question: how easy will it be to install NixOs on it? Will I need a complicated setup beforehand or can I just slap an image on a MicroSD and work from there? Do I have to build on a stronger machine? If extra steps are required, which ones (generally, I don't need a tutorial here)? Or should I just stick with the Pi 4?

Also, surely any official support will be long-term right?

Thanks for any general insights on this.

Edit: is my intuition right that other microcomputers are just easier?


r/NixOS • • 11h ago

Announcing the new Nixpkgs Core Team - Steering Committee

Thumbnail discourse.nixos.org
95 Upvotes

r/NixOS • • 11h ago

My first time using NixOS, and I love it. [Hyprland + Noctalia]

14 Upvotes

I gotta confess this rice leans a lot on premade stuff like Noctalia and the Hyprland autogenerated lua, i hope this is enough for you guys since r/unixporn is too strict 🥲


r/NixOS • • 13h ago

Home Manager "boot" option

4 Upvotes

So I was thinking as I just updated everything, for OS I do nh os boot instead of switch because I most likely need a new kernel. Before I reboot I do nh home switch which has to restart a bunch of stuff which seems pointless as I'm about to reboot anyway.

Is there any way (I can switch away from nh if there is a better option) I can get the same "boot" behavior from home-manager? I guess worst case I could write a systemd unit to check/switch at boot, but that seems a bit excessive and fragile.

Edit: reddit post formatting is the absolute worst.


r/NixOS • • 19h ago

So, what to do for post-quantum safety (both server and osx)?

16 Upvotes

I use nix on osx with determinate and on servers. Apart to update both and to 26.11, but then there is the issues of ssh connections and git stuff.

Is there anything that need to be done in concrete?


r/NixOS • • 20h ago

Software purpose built for Nix

Thumbnail fzakaria.com
64 Upvotes

r/NixOS • • 1d ago

Determinate Systems is moving to post-quantum cryptography

Thumbnail determinate.systems
125 Upvotes

r/NixOS • • 1d ago

nix-agent: let coding agents build, diff, switch and roll back your NixOS config

Thumbnail nix-agent.rupan.dev
0 Upvotes

I posted nix-agent here a while back and wanted to share it again, since it's changed a bit.

It's a local MCP server that gives coding agents (Claude Code, Codex, opencode, Cursor) a real NixOS workflow instead of raw nixos-rebuild output. Builds run in the background, diff shows package changes before switching, switch reports any systemd units it broke, and rollback goes to the recorded generation.

In two local NixOS dry builds, nix-agent reduced tool-output tokens by 89-93% versus unfiltered shell output while keeping the full logs available locally.

Install with a flake input plus programs.nix-agent.enable = true; or just send the install script to ur agent. Coding agent assisted development. MIT licensed.

https://github.com/JEFF7712/nix-agent

Feedback welcome.


r/NixOS • • 1d ago

Gaming on Linux: hardmode with NixOS

Thumbnail nijho.lt
58 Upvotes

Like everyone here, I'm fully Nix-pilled, so of course I insist on gaming on NixOS too. My PC spends most of the week as a headless server in my home office, and every couple of months a friend comes over and we stream games from it to the living-room TV over Sunshine and Moonlight. Most nights we were lucky if our gaming time matched our debugging time.

I wrote up how I wired an automatic gaming-mode switch into Sunshine (pausing background services with a ConditionPathExists guard so comin doesn't restart them mid-game, lifting GPU 0's power limit from 270 W back to 350 W, switching GNOME to a 4K HDMI dummy plug, and bypassing an xpadneo rumble loop), with links to the NixOS configs:

https://www.nijho.lt/post/gaming-on-nixos/


r/NixOS • • 1d ago

Npins or Flakes

8 Upvotes

Former Arch user here, captivated by Nix's beauty yet confused by it. In short, which is better for my use case? I'll pin/import just five dependencies. Noctalia, nixpkgs (probably), home-manager, disko and stylix.


r/NixOS • • 1d ago

NixithOS: NixOS without systemd

Thumbnail github.com
61 Upvotes

I was curiously searching for nixos like distros besides finix/sixos (and guix) that uses different init system and stumbled on this project. It's only a month old and uses LLM so skepticism is normal but so far it looks promising.

Unlike finix/sixos which are bound to finit/s6 respectively, this one takes an interesting approach of using custom compiler to convert systemd units and making them compatible with basically every other init system instead of reinventing the wheel. So you can keep using your existing nixos config instead of rewriting thousands of modules (like finix does). The repo also contains virtual machine tests. It has systemd-boot support too (which was surprising, I like it over grub/limine)

Overall it looks like there's actual effort unlike most vibe coded projects at a glance. Curious to know what do you all think about it?


r/NixOS • • 1d ago

GitHub - numtide/iets: Fast Nix evaluator and remote-build client in Rust

Thumbnail github.com
42 Upvotes

r/NixOS • • 2d ago

Purple Anime Battlestation

Post image
6 Upvotes

r/NixOS • • 2d ago

Stop linking by symbol: from O(symbols) to O(store paths)

Thumbnail fzakaria.com
137 Upvotes

r/NixOS • • 2d ago

How do I learn NixOS?

10 Upvotes

Hi, I switched from Fedora to NixOS a while back, but to be honest, I don't really understand much about it and I'm just following along with what I see on YouTube.

How did you get to know NixOS better?


r/NixOS • • 2d ago

QT and GTK Styling

6 Upvotes

I startes to really like nixos especially with a dendritic pattern, but im still wondering how everyone is taking on themeing qt and gtk.

Nixos has some build in options with qt and dconf and application specific ones.

Home Manager has more options specifically just for qt and gtk.

Stylix also seems like a good tool for the job

What are all of you using and preferring?

How do you handle qt and gtk themes to be consistent with each other?

Do you use tools like kvantum to handle themeing?

Do you use color generation tools like pywall and matugen and if yes how do you manage it?

Thank you


r/NixOS • • 2d ago

Why do some maintainers not review prs/issues?

13 Upvotes

I understand this is done for free in their spare time. I'm not asking for inmediatamente action. But having a 1 line PR sit with literally 0 comments for 6-7 months is a bit annoying at best.

I was having issues with Japanese fonts in flatpak, so I investigated, found the cause, made an issue and a pr. In June.

To this day the pr has been ignored by the maintainer. Idk what to do anymore to be honest. I don't want to be annoying and spam someone doing this in their free time but it's also super discouraging and disappointing to not even get a reaction.

Sigh. I guess it will never get anywhere. https://github.com/NixOS/nixpkgs/pull/529277 in case anyone cares.

At least nix allows overlays so I can run my patch on my local machine. Better than nothing I guess.

Edit: it got merged! Thanks for the help. I'll finally be able to remove that overlay now.


r/NixOS • • 2d ago

NixOS 26.11 released

Thumbnail nixos.org
283 Upvotes

r/NixOS • • 2d ago

is nix good for a first distro?

29 Upvotes

r/NixOS • • 2d ago

Nix Software - a small update

21 Upvotes
  1. Added the 26.11 channel. A warning is now displayed when using deprecated channels.

2. Updated the options page. The design has been slightly improved, and option descriptions now support Markdown. Option search has also been improved: you can now omit the dot. For example, `avahi enable` and `avahi.enable` will return the same results.

3. Removed macOS (Intel) from the platform filter.

4. Various bug fixes.

Nix Software: https://nixsoftware.org


r/NixOS • • 2d ago

Speed Demon II: an optimisation race where the Nix language is one of 26 entries, eval only (29 Jan to 1 Feb 2027)

1 Upvotes

Speed Demon II is an online optimisation hackathon for interpreted languages, and the Nix language is one of the 26. Each language runs on one pinned interpreter. No FFI, native modules or subprocesses, so the work happens in Nix evaluation itself.

Four tracks: parse 310,000 log lines, index 25,000 documents, join a hostile CSV, and run shortest paths on a 500,000-edge graph. Each entry is timed against a naive Nix reference on one machine. Every push sets your team's car speed on a live 3D race round San Francisco.

Teams of 1 to 4. A practice day, then a 48-hour race. $2,000 in prizes.

Details: https://speeddemon.dev/2027/

Register: https://speeddemon.dev/2027/register/


r/NixOS • • 2d ago

Do I go back to nixos

0 Upvotes

Please as I have not used it for a long time I wanna go back but forgot the commands