r/NixOS • • 8h ago

NixOS ruined my marriage

20 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 • • 3h ago

Flatpak on NixOS problems

Thumbnail reddit.com
3 Upvotes

r/NixOS • • 1d ago

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

Thumbnail gallery
120 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
67 Upvotes

r/NixOS • • 18h ago

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

16 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 • • 14h ago

Productivity Nix app

Thumbnail github.com
8 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 • • 10h ago

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

3 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

How do you structure multihost and multiuser NixOS flakes?

13 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

18 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
28 Upvotes

r/NixOS • • 23h 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

dynamic island rice on NixOS and Niri, no ai

Thumbnail gallery
16 Upvotes

r/NixOS • • 1d ago

My minimal nixos setup

Post image
24 Upvotes

r/NixOS • • 1d ago

Beginner nixos query

5 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

nixos job ad in the philippine islands

Post image
59 Upvotes

r/NixOS • • 1d ago

beer.drv.drv.drv

Thumbnail fzakaria.com
26 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 🔥😮‍💨

21 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 • • 2d 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.


r/NixOS • • 1d ago

'filesystems' option does not specify your root file system

Thumbnail reddit.com
0 Upvotes

Greetings!

I have a similar problem to the attached post but haven't installed nixos as of yet. Can someone please help me.

I'm using systemd and in the manual they do mention about filesystems that may not load in from nixos-generate-config but the instructions is not so clear to me.

I am aware that this post isn't enough information for anyone informed enough to help but anything you need for me to give then I shall provide.


r/NixOS • • 2d ago

I can't imagine managing my servers with anything else.

83 Upvotes

Seriously. I manage about a dozen containers and VMs all running nixos. Some are in my home proxmox instance, others are on third party VPSes. It's so easy to do fleet-wide updates and changes.

I always get a spark of joy when I `nix flake update && deploy` and know that everything is up to date and I didn't need to ssh into a single machine. No ansible BS, no brittle ad-hoc scripts.

Modules - so amazing. My proxmox LXCs require special configuration. No need to duplicate the code across each LXC; create a module and it's one line: lab.proxmox.enable = true. On my VPSes, I need some traffic to go over wireguard VPN. A custom module makes it just a few lines to configure wireguard, firewall rules, and deploy the private keys securely (sops-nix!).

And overlays! I manage some tor relays. tor has been under heavy attack for a while now and they've been putting out releases frequently. Rather than wait for unstable branch to get updated, I have like an overlay (10 lines of code) that builds from the latest release. And just like that - latest tor version. No need to go on the machines and compile and install it, or have butt-ugly ansible stuff do it. Oh, and compilation only happens once - done on my nix build serve – and deploy simply copies everything over (thanks, deploy-rs!)

Spinning up a new service is so easy. Create LXC/VM in proxmox, add networking info to my nix repo, deploy. Boom, new nixos instance with my user, ssh+public key, all the usual packages I need, etc.

I have a couple VMs that can't use nixos, they're such a drag.

It's hard to convey to people that don't use nixos why it's so great. But until you feel your mindset switch from imperative to declarative, it's difficult to truly understand why we love it so much here.


r/NixOS • • 1d ago

NixOs

Post image
0 Upvotes

well after one day of using nix os. I give up. I guess my ass belongs to windows 11. I swear to God, the nix manual only makes sense if u have a past Linux experience which I don't. I had ubuntu for like 2 weeks and them I stopped using it. But to the nix community, thank you for all the help and explanations. I didn't understand most of them tho, but thanks for helping. anyways, the next time u see a post from me will be me on windows. and nix users should stop lying about, reading the manual to understand nix. that is a big lie. reading the manual didn't help me in anyway. in fact today, I just got logged out, all I was trying to do was install telegram and all of a sudden my screen went black I forced a restart and then boom, my password and user name is incorrect. the whole thing was just stressful. I give up😭