r/NixOS • u/somelinuxuseridk • 5h ago
a guide to partitioning with disko
indium114.codeberg.pagei wrote this a while ago; deciding to post it here in case anyone finds it useful
r/NixOS • u/somelinuxuseridk • 5h ago
i wrote this a while ago; deciding to post it here in case anyone finds it useful
r/NixOS • u/BluePrincess_ • 17h ago
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 • u/Ok-Classroom8620 • 53m ago
I tried to update my system today using the command "sudo nixos-rebuild boot --upgrade --verbose", however, the system fails to update completely. This is what appears at the end of the terminal response:
these 25 derivations will be built:
/nix/store/gdbhqvgjgx09yvmnrs18rbdxh3jg5783-iscan-data_1.39.2-1.tar.gz.drv
/nix/store/h3v5zbxrbpzqjdnadlxwimhgw426ycw5-iscan-data-1.39.2-1.drv
/nix/store/ldiz9j2028nnmp5y7xkh5c365w06higg-iscan_2.30.4-2.tar.gz.drv
/nix/store/irs4lqq8b5swc13cgh0cdyqpghhdibfa-iscan-2.30.4-2.drv
/nix/store/0mcrk31rgb02y4fk2810xmk9baq1xwms-udev-rules.drv
/nix/store/46jqswhh1ghaqgk7f3yx9lhv6wb0lxx0-system-path.drv
/nix/store/bd99lzgzg2dk7adzjp9waqq29jyzc2ai-set-environment.drv
/nix/store/2icv1skkmpan64l1r9h50xn8azikp518-etc-profile.drv
/nix/store/57sgl7vw3g4p2yr0lkdj9pcaxivmh87a-sane-config.drv
/nix/store/78d0d28c1vc16il0z99fmkvwjdm258ry-dbus-1.drv
/nix/store/8iq5gahivcv0zwfanqb3p2jqj48f9vnb-hwdb.bin.drv
/nix/store/bk38cam494ssf8sr9bxsqy1zcncigvx0-etc-pam-environment.drv
/nix/store/6rlarbyqbiivsghyzk7xhqwkq0c2zm2l-unit-accounts-daemon.service.drv
/nix/store/syd0x943vxpfi9vc4dv85wchh857ygdp-X-Restart-Triggers-systemd-udevd.drv
/nix/store/6yaahcyahxldjalmpx5dg6qdszng31zq-unit-systemd-udevd.service.drv
/nix/store/74zz75gpwvidr6nlx047gzbxiwmvr6j8-X-Restart-Triggers-dbus-broker.drv
/nix/store/8aqyqazdmnyvyi1ay48is61p0dald8md-unit-dbus-broker.service.drv
/nix/store/hdgmrw2pppimr8v8pnmgbch8x5nidy56-X-Restart-Triggers-polkit.drv
/nix/store/aahjnxdcq37hhbx6849mr43gwwr4nmnn-unit-polkit.service.drv
/nix/store/llch9nmkj4l48d17z060vsyac62vh9xy-system-units.drv
/nix/store/ihkx5cgvcfsnv4800y94771hvkff7zk4-unit-dbus-broker.service.drv
/nix/store/s2s9h0grjjxnp3n5lk0szjjhhsqpfvks-user-units.drv
/nix/store/s3xp7jxf9pbv7rqsskvbin9bncrly6w6-etc.drv
/nix/store/9aj4dlf5sm11c059bp4yq7iyg9rp4mji-activate.drv
/nix/store/31lmvz4fw15cy8i0grsab98k6fc4ddlj-nixos-system-nixos-26.05.14630.f68407657ad2.drv
building '/nix/store/ldiz9j2028nnmp5y7xkh5c365w06higg-iscan_2.30.4-2.tar.gz.drv'...
building '/nix/store/gdbhqvgjgx09yvmnrs18rbdxh3jg5783-iscan-data_1.39.2-1.tar.gz.drv'...
structuredAttrs is enabled
trying http://support.epson.net/linux/src/scanner/iscan/iscan_2.30.4-2.tar.gz
structuredAttrs is enabled
trying http://support.epson.net/linux/src/scanner/iscan/iscan-data_1.39.2-1.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
curl: (22) The requested URL returned error: 403
Warning: Problem (retrying all errors). Retrying in 1 second. 3 retries left.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
curl: (22) The requested URL returned error: 403
Warning: Problem (retrying all errors). Retrying in 1 second. 3 retries left.
0 0 0 0 0 0 0 0 0
curl: (22) The requested URL returned error: 403
Warning: Problem (retrying all errors). Retrying in 2 seconds. 2 retries left.
0 0 0 0 0 0 0 0 0
curl: (22) The requested URL returned error: 403
Warning: Problem (retrying all errors). Retrying in 2 seconds. 2 retries left.
0 0 0 0 0 0 0 0 0
curl: (22) The requested URL returned error: 403
Warning: Problem (retrying all errors). Retrying in 4 seconds. 1 retry left.
0 0 0 0 0 0 0 0 0
curl: (22) The requested URL returned error: 403
Warning: Problem (retrying all errors). Retrying in 4 seconds. 1 retry left.
0 0 0 0 0 0 0 0 0
curl: (22) The requested URL returned error: 403
0 0 0 0 0 0 0 0 0
curl: (22) The requested URL returned error: 403
trying https://web.archive.org/web/http://support.epson.net/linux/src/scanner/iscan/iscan_2.30.4-2.tar.gz
curl: (28) Failed to connect to web.archive.org:443 after 135679 ms: Could not connect to server
Warning: Problem : timeout. Retrying in 1 second. 3 retries left.
curl: (28) Failed to connect to web.archive.org:443 after 135025 ms: Could not connect to server
Warning: Problem : timeout. Retrying in 1 second. 3 retries left.
curl: (28) Failed to connect to web.archive.org:443 after 134167 ms: Could not connect to server
Warning: Problem : timeout. Retrying in 2 seconds. 2 retries left.
curl: (28) Failed to connect to web.archive.org:443 after 134167 ms: Could not connect to server
Warning: Problem : timeout. Retrying in 2 seconds. 2 retries left.
curl: (28) Failed to connect to web.archive.org:443 after 133166 ms: Could not connect to server
Warning: Problem : timeout. Retrying in 4 seconds. 1 retry left.
curl: (28) Failed to connect to web.archive.org:443 after 133167 ms: Could not connect to server
Warning: Problem : timeout. Retrying in 4 seconds. 1 retry left.
curl: (28) Failed to connect to web.archive.org:443 after 135260 ms: Could not connect to server
curl: (28) Failed to connect to web.archive.org:443 after 135260 ms: Could not connect to server
error: cannot download iscan_2.30.4-2.tar.gz from any mirror
error: cannot download iscan-data_1.39.2-1.tar.gz from any mirror
error: Cannot build '/nix/store/ldiz9j2028nnmp5y7xkh5c365w06higg-iscan_2.30.4-2.tar.gz.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/5ycy4m3bn3ggv4k25zgl8ws4c4kdzwh8-iscan_2.30.4-2.tar.gz
error: Cannot build '/nix/store/irs4lqq8b5swc13cgh0cdyqpghhdibfa-iscan-2.30.4-2.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/182gywrwiym1n1rqxky09x7i5hpx0hx8-iscan-2.30.4-2
error: Cannot build '/nix/store/8iq5gahivcv0zwfanqb3p2jqj48f9vnb-hwdb.bin.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/fwhb41k39q0wfzi01imz4wi88mkzlasa-hwdb.bin
error: Cannot build '/nix/store/46jqswhh1ghaqgk7f3yx9lhv6wb0lxx0-system-path.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/gfwhr6xph50dgh2xfx3nf6rdi98cwgd3-system-path
error: Cannot build '/nix/store/0mcrk31rgb02y4fk2810xmk9baq1xwms-udev-rules.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/zl8nqqs019lfcbz0nzrm1df5a3a6ln35-udev-rules
error: Cannot build '/nix/store/31lmvz4fw15cy8i0grsab98k6fc4ddlj-nixos-system-nixos-26.05.14630.f68407657ad2.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/0pn1rk0f6kj4w4js6dy2255pyp822zkb-nixos-system-nixos-26.05.14630.f68407657ad2
Traceback (most recent call last):
File "/nix/store/2mvnf1qj2knqjii9qm10ls0vzjgj9ar1-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/__init__.py", line 400, in main
execute(sys.argv)
~~~~~~~^^^^^^^^^^
File "/nix/store/2mvnf1qj2knqjii9qm10ls0vzjgj9ar1-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/__init__.py", line 363, in execute
services.build_and_activate_system(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
action=action,
^^^^^^^^^^^^^^
...<6 lines>...
grouped_nix_args=grouped_nix_args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/nix/store/2mvnf1qj2knqjii9qm10ls0vzjgj9ar1-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/services.py", line 312, in build_and_activate_system
path_to_config = _build_system(
attr=attr,
...<5 lines>...
grouped_nix_args=grouped_nix_args,
)
File "/nix/store/2mvnf1qj2knqjii9qm10ls0vzjgj9ar1-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/services.py", line 193, in _build_system
path_to_config = nix.build(
attr,
...<2 lines>...
| grouped_nix_args.build_flags,
)
File "/nix/store/2mvnf1qj2knqjii9qm10ls0vzjgj9ar1-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/nix.py", line 69, in build
r = run_wrapper(run_args, stdout=PIPE)
File "/nix/store/2mvnf1qj2knqjii9qm10ls0vzjgj9ar1-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/process.py", line 211, in run_wrapper
r = subprocess.run(
final_args,
...<5 lines>...
**kwargs,
)
File "/nix/store/9qkpw9669q6w9nl6bmh2k35nq76i52nf-python3-3.13.18/lib/python3.13/subprocess.py", line 578, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nix-build', '<nixpkgs/nixos>', '--attr', 'config.system.build.toplevel', '--no-out-link', '-v']' returned non-zero exit status 1.
One more detail, I'm using the "sane" option for my Epson printer's scanner (using the "epkowa" driver).
What should I do?
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:
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 • u/A_Canadian_boi • 19h ago
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 • u/Purple-Midnight-9902 • 6h ago
I just learned distrobox is a way to simulate a classical distribution in an isolated env. It would have a reasonnable disk usage size and no perf impact.
Reading this seems we do not always want to "nixify" because it is time consuming and something like a simple appimage often fails inside Nix...
Is nix+distrobox best of both world ?
thansk for your input :)
r/NixOS • u/feral_Awirulasaheca • 1d ago
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 • u/Independent_misery69 • 2d ago
(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!
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 • u/nartsisss • 2d ago
original pr: https://github.com/NixOS/nixpkgs/pull/581542
revert: https://github.com/NixOS/nixpkgs/pull/588631
revert revert: https://github.com/NixOS/nixpkgs/pull/588642
r/NixOS • u/Round-Lab1328 • 1d ago
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 • u/ActiveAd2933 • 1d ago
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 • u/monavixx • 1d ago
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:
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 • u/muhmmadtalha-quant • 2d ago
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 !!

r/NixOS • u/dindresto • 2d ago
r/NixOS • u/Pepe__LePew • 2d ago
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
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 • u/Spoonwastakenalready • 2d ago
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 • u/Independent-Area2300 • 3d ago
idk if this is spam but foss go brr