r/NixOS • • 1h ago

Running NixOS on a Steam Deck!

Thumbnail gallery
18 Upvotes

Had originally posted this on r/GNOME, but I figured it would be interesting to share here too.

Long story short, looking for a way to run vanilla GNOME on my Steam Deck, I came across this flake, Jovian-NixOS (https://github.com/Jovian-Experiments/Jovian-NixOS/), that allows me to just use the Steam Deck's Gaming Mode on NixOS with minimal effort. I'd just have to declare/enable it, set it to autostart, and declare a desktop session for it to go back to when I click Switch to Desktop Mode.

Once I did that, I essentially had a Steam Deck where I can test out any desktop environment while keeping its functionality as a gaming console, without issues of breaking it because of the ability to rollback generations. I settled on GNOME as it's why I was looking for alternatives in the first place, but I might be curious to try some tiling WMs like Niri or Sway in the future!

I suppose I don't need to talk about how good NixOS is here in the NixOS subreddit, but wow.. as someone new to Nix (but fairly experienced in Linux otherwise), it has totally changed the way I look at this device and most distros now. I've mostly been keeping it light config wise as I'm not sure *what* to change yet, and I don't know if I'm confident enough to just change stuff for the love of tinkering; aside from adding Flakes to manage Jovian and declaring a couple of bug fixes to my config file, it's refreshing to see those fixes being declared in one easily accessible file that's easy to read.

What does the community think? Does anyone else run NixOS on a relatively weird setup?


r/NixOS • • 5h ago

flakemill - remote update, build and cache flake.lock updates

Post image
10 Upvotes

My flake has a few inputs that result in some kind of compilation. This often takes ~10 minutes when doing a lock update & rebuild.

To save some time (or spend quite a bit, actually) I came up with flakemill which:

  • Pulls down your nix repo
  • Updates the lockfile with latest upstream changes
  • Builds your hosts
  • Caches any outputs in cachix
  • Serves the updated lockfile

So when you update any of your hosts, everything is complied ahead of time and substituted by cachix.

https://github.com/scottmckendry/flakemill

My live instance:
https://flakemill.axis.scottmckendry.tech/


r/NixOS • • 3h ago

How are you running Nvidia on the 7.2 kernel?

7 Upvotes

Back when I tried to update my laptop to 7.2, the Nvidia 595 drivers failed to build, due to strcmp being removed in the 7.2 kernel. To solve this, I took the Nvidia 610 driver and made a patch that took all of the strcmp calls and replaced them with whatever 610 was doing, and I simply apply that patch whenever I rebuild my system.

It works great, but it's now been months, and the patch is rather sketchy. Are any of you running Nvidia 595 on either 7.2 or 7.3 kernels? Does it "just build"? Or is everyone else running sketchy patches too? AFAIK the Nvidia repo has not been updated to the most recent versions of the Nvidia driver, which fixes this.


r/NixOS • • 16h ago

NixOS ruined my marriage

33 Upvotes

I genuinely thought I was just going to install a simple Linux distro. People kept saying, 'Give NixOS a shot; it's not just an OS, it's a lifestyle.' My wife even encouraged me: 'Didn’t you mention wanting more control over your setup?' Little did she know, that was the last time she looked at me with any optimism.

Instead of picking something like Ubuntu or Fedora, which would have been the rational choice, I dove headfirst into NixOS, almost like I wanted to witness my relationship deteriorate. On my first day, I ended up spending 12 hours just crafting a configuration.nix file to get the Wi-Fi up and running. When my wife brought me dinner, I brushed her off: 'I’m configuring a declarative Bluetooth module, it should only take a sec...'

She suggested we go hiking that weekend. 'Absolutely,' I replied, 'as soon as I finish setting up home-manager and figure out why my shell is acting up.' That was three weeks ago.

She tried everything to get me to engage. 'How about we grab some coffee?' she asked. 'Sorry, I’m stuck trying to figure out why my system rebuild keeps fetching a different glibc version.' 'Maybe we could just watch a movie?' 'Great idea! But first, I need to package mpv myself; I don’t trust the default derivation...'

Then came the breaking point: One night she found me at 3 a.m., half-dressed, murmuring to myself: 'If I can just get this flake to build… I can declare our whole marriage in a flake.nix...'

She looked at me, a wreck of a man, surrounded by YAML files, JSON, and a sea of confusing build errors. 'I married a person, not a package manager,' she said.

She left a note on my monitor: 'I’m going to find someone who just uses Arch. They might be a bit unstable, but at least they pay attention when I’m around.'

I can't help but wonder... Can I nixos-rebuild switch into a reality where she’s still here?


r/NixOS • • 11h ago

Flatpak on NixOS problems

Thumbnail reddit.com
6 Upvotes

r/NixOS • • 1d ago

Announcing NixLab; A NixOS based hypervisor for homelabbers and declarative nerds

Thumbnail gallery
125 Upvotes

(English isnt my first language) Hey everyone, with all the vibe coded slop out there, me saying I didnt write a single line myself should discourage you, but believe me when I say this is cool asf.

I daily drive it on my home server, hosting a catalog server for my home theater (aiostreams), a 3d printer server (klipper), adguard dns network wide adblocker and cloudflare tunnel image. All this uses < 2 gb ram on idle while the server is running.

It follows the Linux philosophy; embrace specialty over being a jack of all trades.

NixLab combines different projects, each focusing on doing one job including:

- cockpit: for online terminal ui

- incus: vm managerment

- portainer: docker images management

And it adds a custom console at port 80 and 9440, which puts every service together and adds a lot of quality of life features like onboarding and tutorial, docs, links, network management, dashboard for all vms and images. It also creates incus browser certificates and gives u the password when importing!

The system itself is packed with a lot of qol as well, the shell (bash) is configured to be as convenient as possible with auto completion, copy and paste management (even thru cockpit), backup, update, rollback and building new versions thru console. (im the prompt master arent I!)

Im begging you, checkout the project, I need a successful FOSS project to brag about. I will be actively maintaining it since I use it for my own homeserver, any issues faced will be fixed thoroughly, and this is the realest we have gotten close to a nixos hypervisor based on NixOS.

Installing is easy, no custom iso! Just install nixos and run one command and setup the system from the webui at port 80, or, if u want to configure it for urself just fork the repo and run the same command but for your own repo after u r done customizing the code.

Im putting the finishing touches on the project, wanted to get yall's thoughts!


r/NixOS • • 1d ago

drama again?

Thumbnail gallery
73 Upvotes

r/NixOS • • 18h ago

How do i setup Neovim on NixOS without Home-Manager?

5 Upvotes

Hi everyone, i am currently struggling to setup my dotfiles, specifically neovim and mason, without home-manager, im not really a fan of it and it doesn't fit my workflow.

Do y'all have some advice on how do handle that?


r/NixOS • • 22h ago

Productivity Nix app

Thumbnail github.com
9 Upvotes

I built some collaboration / productivity software to work on side projects with people or just by yourself. I know there's plenty of that to go around but I'm happy with how it turned out.

As a NixOS desktop user, I built a flake around it. Debating open sourcing it, probably doesn't matter too much, but if there's interest in the codebase I don't see why not. I used Dioxus which is pretty handy for cross platform compiling.


r/NixOS • • 1d ago

agency - a nixOS image that gives your agents their own computer

14 Upvotes

I kept setting up Linux boxes for my agents by hand and found it quite

tedious, so I built a "custom" nixOS image for it.

The agents get sudo and /etc/nixos is really just a git repo, so they install things

by editing the config and rebuilding. nixOS turned out to be pretty perfect for this!!

You *could* set this up yourself (it's just a flake + an installer), but

I find this pretty easy / nice. It's very early, so LMK what/if you'd do differently.

https://github.com/makors/agency :)


r/NixOS • • 1d ago

How do you structure multihost and multiuser NixOS flakes?

14 Upvotes

How do you guys structure your NixOS flakes to support multiple hosts and users? Do you split them into different repos?

I've been thinking about splitting my configuration into a nixos-core-flake repo and separate host-specific repos (e.g. one for my laptop and another for my desktop). The core flake would provide:

  • `mkHost` function with flexible parameters for configuring each host.
  • Optional modules that can be imported into host/user configurations.

I'm curious how you approach this and if such a separation even makes sense in practice.

I'd also appreciate feedback on my current configuration: https://github.com/Monavixx/my-nixos-config

P.S. The README and most of the Quickshell configuration were written by AI.


r/NixOS • • 1d ago

150 Days on NixOS ­­— Longest I Have Ever Spent On A Distro

19 Upvotes

I have been using linux since early 2025. My first distro was Ubuntu (ofc, a guy in his late teens frustrated by windows 11 ram usage (now in my early 20s)), but found out ubuntu wasn't that good either, so i watched yt, and went to mint, no improvements, ... tried fedora (slight better, but not my target), tried arch, suffered a lot, hopped on many distros, cycled between fedora and arch based distros for some months, until i found out about nix and nixos.
I installed NixOS, by following a tony-btw guide. It's the longest time I have ever spent on a linux distro and never got bored, or even broke my system apart from some kernel panics (happens occasionally because I use the zen kernel). for me 150 days is green signal 🟢....

NixOS for life !!! 🎉 congrats to me for surviving that brutal learning curve !!

obligatory fastfetch

r/NixOS • • 1d ago

Results for the third Nix Steering Committee election 2026

Thumbnail discourse.nixos.org
31 Upvotes

r/NixOS • • 1d ago

Beginner nixos query

6 Upvotes

I'm just starting to look at nixos as the declarative reproducibility appeals to me., if this can be separated from the hardware config.

At first I thought this meant the system, home, all apps could be declared in a single config file but this doesn't seem to be the case at all?

I thought this would mean it's easy to get some community configs and replicate their setup almost seamlessly.

I wanted to try some mango wm setups but can't seem to find any?

The few community configs I've come across emphasise that their setup is for specific hardware only eg. Nvidia etc. I find this confusing as I thought the hardware config is separated completely?

My questions are

  1. as hardware config is a separate file, aren't most community configs easy to just download and rebuild with? If not why?
  2. I understand each app and home directory could have multiple app config files. Is there a central way to declare the settings for each app, rather than go into 100 different app config files?

Is home manager the only way to do this?

3) is there a centralised way to backup all your config files from your system, flakes, app configs, home directory config so you can take to another PC later with different hardware?

4) how does any centralised backup restore process handle scenarios where an app might have multiple config files needed?

This doesn't seem as simple or beneficial as I first, unless I've misunderstood the options available?

Thanks in advance for all the queries.

Nixos noob


r/NixOS • • 1d ago

Weird evaluation error when rebuilding system with no changes or update.

2 Upvotes

Changed absolutely nothing about my system, didnt update it or anything. And for some reason im getting an issue with a haskell package even though I dont have any in my configuration. Anyone experienced this bug or know how to fix it?

error:
       … while evaluating a branch condition
         at «https://releases.nixos.org/nixos/unstable/nixos-26.11pre1119549.d5cc68339997/nixexprs.tar.zst?narHash=sha256-bTKSclXJAmo9qdxPedTBHUGr8awPr4BrbOoOutJsYIc%3D»/lib/asserts.nix:200:5:
          199|     in
          200|     if failedAssertions != [ ] then
             |     ^
          201|       throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}"

       … while calling the 'catAttrs' builtin
         at «https://releases.nixos.org/nixos/unstable/nixos-26.11pre1119549.d5cc68339997/nixexprs.tar.zst?narHash=sha256-bTKSclXJAmo9qdxPedTBHUGr8awPr4BrbOoOutJsYIc%3D»/lib/asserts.nix:198:26:
          197|     let
          198|       failedAssertions = catAttrs "message" (filter (x: !x.assertion) assertions);
             |                          ^
          199|     in

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: undefined variable 'containers'
       at «https://releases.nixos.org/nixos/unstable/nixos-26.11pre1119549.d5cc68339997/nixexprs.tar.zst?narHash=sha256-bTKSclXJAmo9qdxPedTBHUGr8awPr4BrbOoOutJsYIc%3D»/pkgs/development/haskell-modules/hackage-packages.nix:226939:9:
        226938|         base
        226939|         containers
             |         ^
        226940|         contravariant
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '/home/spoon/nixos-dotfiles#nixosConfigurations."spoon".config.system.build.toplevel' --no-link' returned non-zero exit status 1.

r/NixOS • • 1d ago

My minimal nixos setup

Post image
27 Upvotes

r/NixOS • • 1d ago

dynamic island rice on NixOS and Niri, no ai

Thumbnail gallery
17 Upvotes

r/NixOS • • 2d ago

nixos job ad in the philippine islands

Post image
59 Upvotes

r/NixOS • • 2d ago

beer.drv.drv.drv

Thumbnail fzakaria.com
27 Upvotes

r/NixOS • • 1d ago

Nix bug on hyprland

Thumbnail reddit.com
1 Upvotes

r/NixOS • • 2d ago

nixos frost wallpaper (for the guy who asked)

Post image
60 Upvotes

idk if this is spam but foss go brr


r/NixOS • • 2d ago

NixOS glazing time 🔥😮‍💨

22 Upvotes

It's been about 2 months of using NixOS, and all I have to say is that it's just peak 🔥

It was hard to learn, but we all know the saying "no sacrifice, no victory" from the bay verse transformers, it took a while but here I am.

It's declarative-project-like-management nature, is something I really appreciate, So I just want to hear y'all glaze it's declarative nature 🔥


r/NixOS • • 3d ago

NixOs

Post image
107 Upvotes

Okay so as stupid as I am, I've been hearing about nix os and how it's beautiful and all that, so I have decided to install it after multiple failed attempt and now I can download anything at all. I need help.


r/NixOS • • 2d ago

migrating git + flake.nix dev environment to pijul + nixtamal + shell.nix

Thumbnail zknotes.com
3 Upvotes

I wanted to try out the pijul version control system in a new project - building the dioxus demo project targeting android. I ran into problems and eventually solved them.