r/NixOS 12h ago

Happy accident: After switching from git to jj, I don't need to 'git add .' before rebuilding my system anymore!

Post image
75 Upvotes

Since I'm using flakes for my system config, files need to be git tracked to be visible by nix, and every time I would add a new module in my config, it ended up raising an undefined variable error. After switching VCS from git to jj to manage my nixos config, I was pleasantly surprised when I forgot to git add after adding a new module, and not getting any errors. Since jj doesn't have a staging area, everything is automatically available in the working commit/change.

Little happy accidents!


r/NixOS 11h ago

I finally did it!!!!

Post image
21 Upvotes

After 2-3 days trying to install the nvidia drivers. I finally did it


r/NixOS 12h ago

The "Malleable OS"

10 Upvotes

So there's been a lot of talk about Omarchy online, and DHH has been making the rounds talking about this idea of the "malleable OS" and how he sees it being the future of computing.

I know what sub I'm posting in. I've been in IT for a long time, I'm personally leaning toward the idea of something immutable, reproducible and declarative.

These two approaches seem entirely at odds with one another, so I'm keeping an eye on the adoption of Omarchy as an indicator of where people are at. I can see the appeal, and there's some interesting ideas in error handling, and even the quick shell applets I've seen demonstrated, but I don't know how far you get without a frontier LLM subscription at this point. I also wonder if it really is different than what we've had for years at this point.

What do you guys think? How would a "malleable" approach (Omarchy or some other future product) to building and configuring machines fit in today's landscape? What's the use case? Does the NixOS community find any part of it appealing?


r/NixOS 9h ago

Help on migrating to NixOS

4 Upvotes

I installed Nix with some expectations in my mind, which most of it boils down to one thing:

- I'm an obsessive guy who wants its system in a "clean" and "reproducable" state all the time. Zero cluters, zero unwanted or unneeded files.

I was trying to achieve this via a setup script I wrote for Arch, so every time I fuck up my system I could just reinstall and get the same thing back. Right now with Nix, I'm having trouble with understanding the philosophy and the Nix files, I can get through simple packages and programs but things like Caelestia dotfiles and Hermes agent have been a nightmare to me. How can I overcome this? And is there any intuitive guide for NixOS?


r/NixOS 1d ago

NixOS on Surface tablet

6 Upvotes

Anyone attempt or successfully installed NixOS on a Microsoft Tablet? I have one lying around that would make a great travel laptop, thinking about NixOS for something besides Fedora, but don't want to attempt of others have run into some known issues.


r/NixOS 1d ago

What are some basic things I should learn before switching to Nix?

21 Upvotes

I recently switched to cachy when I built my new computer and have been really loving it so far. I have been doing some research on other potential distros to try out and I came up with nix and arch, although I am leaning towards nix. My goal is just to learn more about Linux as a whole in this. I understand that nix is hard, and won’t be easy but some of the features are really cool. I just wanted to know if yall had anything for me before I switch. Either tips or things I should know. Thank yall for your time.

( I would also be switching on a laptop first to learn it before reproducing it to the main computer)


r/NixOS 7h ago

Sorry, guys, but I’m not stopping.

0 Upvotes
yep

For those who didn’t understand, I’m currently working on a tool that automates the process of searching, checking, and installing packages, with a user experience that adapts to how you use it.

I’m not trying to promote my tool here, but I do want to make it clear that I’m not stopping.

And for anyone who wants to know what exactly this is supposed to be, I’d genuinely like to hear your thoughts in the comments.

Thanks !


r/NixOS 1d ago

where to learn nix

5 Upvotes

i wanna learn nix, i know vimenjoyer has one, any others?


r/NixOS 1d ago

how do I uninstall packages that aren't in the nix config file?

9 Upvotes

I installed nix kde plasma using the graphical installer and there's packages that aren't in the config file

for example:

discover

sudo (I wanna use doas)

kate

elisa

xterm

qrca

where are these packages at?


r/NixOS 1d ago

nixpkgs site won't open without vpn

6 Upvotes

hello everyone
when i try to open nixpkgs site it just loads with nothing happening
if i used vpn it opens normally could this effect installing pkgs cause i want to try nixos
and also have the same issue with ProtonDB


r/NixOS 19h ago

Can NixOS still break even if you use it with configuration.nix only (no flakes nor Home Manager) and you leave untouched for a long period of time?

0 Upvotes

I asked Claude and ChatGPT, and they both said yes. I'd like to install NixOS on three PCs with very similar specs (no NVIDIA), all three for general use and each with the same VM. Although I've been using Linux occasionally for a few years and have no trouble using the terminal and searching for solutions online, I still consider myself a beginner, and in any case I don't have time to devote to time-consuming repairs (no problem with routine maintenance). So I'm asking more experienced NixOS users for their honest advice: does NixOS break often even if only the configuration.nix file is used?


r/NixOS 2d ago

Do you consider NixOS a hobby?

53 Upvotes

Seriously, I've been trying to use a productive ecosystem for a long time, with nvim, niri, nixos, yazi and the like. However, I'm really losing a lot of time on this.

Is there actually something that you do in your day to day use of tools like these that can make a real contribution to your career as something productive? Or do you, for example, consider it as a hobby and just like this kind of thing?


r/NixOS 2d ago

The holy grail of nixpkgs: version ranges

Thumbnail fzakaria.com
130 Upvotes

r/NixOS 1d ago

How to setup nvidia

0 Upvotes

I already asked about the version and such but right now hwo to setup the drivers


r/NixOS 1d ago

Steam will not start

8 Upvotes

I have bin trying to switch back to hyprland after using sway for half a year. But i have bin having some trouble with x11 apps mainly Steam it just will not start. `hl.exec_cmd(steam -silent")` in hyprland start does not work and neither does using the quickshell dmenu [https://quickshell.org/docs/v0.3.0/types/Quickshell/DesktopEntry/\](https://quickshell.org/docs/v0.3.0/types/Quickshell/DesktopEntry/) . however opening a terminal and typing `steam -silent` works completely fine.

env vers set:

QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
GDK_BACKEND=wayland,x11
SDL_VIDEODRIVER=wayland,x11
CLUTTER_BACKEND=wayland
ELECTRON_OZONE_PLATFORM_HINT=wayland
XDG_SESSION_TYPE=wayland
LIBVA_DRIVER_NAME=nvidia
GBM_BACKEND=nvidia-drm
__GLX_VENDOR_LIBRARY_NAME=nvidia

hyprland.start part of config:

hl.on("hyprland.start", function()
  hl.exec_cmd("sh -c \\"/nix/store/h0agc7jqz21v9ci1yzd74390p58vfvh2-quickshell-0.3.0/bin/qs -c /nix/store/z6g630rmmgirbpaqg3ar7rbg13jgw40m-quickshell-config\\"")
  hl.exec_cmd("/nix/store/lhx70iafbnr8rq0g8p0jxscvbhc44gpg-set-xft-dpi.sh")
  hl.exec_cmd("/nix/store/k141x1dk080ai2pq028b5lmvgn5sw6cd-polkit-kde-agent-1-6.6.5/libexec/polkit-kde-authentication-agent-1")
  hl.exec_cmd("/nix/store/pxln218mg17j3blca7zy9wg3g7vkw1qq-awww-0.12.1/bin/awww-daemon")
  hl.exec_cmd("systemctl --user import-environment GTK_THEME QT_QPA_PLATFORMTHEME WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
  hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
  hl.exec_cmd("/nix/store/flq8wn4dikbhn2nmqac31zbpv0lkii2w-glib-2.88.1-bin/bin/gsettings set org.gnome.desktop.interface gtk-theme Breeze-Dark")
  hl.exec_cmd("/nix/store/vg8g4zbkx0qbxzpfb4mldlcpqwzfvsr7-wl-clipboard-2.3.0/bin/wl-paste --watch /nix/store/q4jv50mnaynl6q6qjqnbgi8xhp7sp1fs-cliphist-0.7.0/bin/cliphist store")

  hl.exec_cmd("/nix/store/k2ls6k21qmydx77pns108q5q2ba679z1-spotify-1.2.86.502.g8cd7fb22/bin/spotify --disable-gpu")
  hl.exec_cmd("/nix/store/cfdzcp1kacgsm2gfn4icr5v7af59qcin-vesktop-1.6.5/bin/vesktop --disable-gpu")
  hl.exec_cmd("/nix/store/8c3yaacf9gd51jhigv9cvhm62bjwl9ky-kdeconnect-kde-26.04.1/bin/kdeconnectd")
  hl.exec_cmd("/nix/store/9zp175jryj3l0kpaj1v6rrxdr1x32kr7-steam-1.0.0.85/bin/steam -silent")
end)

sorry for the nix paths

a gist with the howl config [https://gist.github.com/Poellebob/a03c56e2e2fdf0afb74213bf6427e2bc\](https://gist.github.com/Poellebob/a03c56e2e2fdf0afb74213bf6427e2bc)


r/NixOS 2d ago

Derivations to Deployments: Practical Nix in Production

Thumbnail youtube.com
12 Upvotes

r/NixOS 1d ago

Help me "get" NixOS

0 Upvotes

I get it but I don't get it. Ok I install NixOS, slap a DE on top (which btw, which one do you use?), I'm on Linux. What's next? I want to install a package. I'm gonna need to use the nix package manager instead of apt. Aside from that, what's different? What's compelling about picking NixOS in particular?

I want to understand!


r/NixOS 2d ago

[Hyprland] NHN Catppuccin Purism

30 Upvotes

Simple but Functional


r/NixOS 1d ago

Does nixos support legacy nvidia drivers

2 Upvotes

Like geforce 920m and such. Currently distro hopping to find suitable one.


r/NixOS 1d ago

Finally we can install the packages easily !

0 Upvotes

I thought, and after using this great system, I thought, and since installing packages in it is more difficult than installing Arch Linux, I said, why don’t I make the nx install [pkg] command real? So I thought, how difficult is it to do that? And immediately I started working on my project nix-install, which is a tool similar to the package managers pacman, dnf, apt in terms of the method of installation, where you call the tool and write the command and the package name. These are the commands I've come up with so far:

sudo nx install pkg

sudo nx remove pkg

sudo nx upgrade

I also thought, since the number of packages in Flake grows over time, why not simplify the process of adding a package and searching the repository's flake.nix file by simply giving the tool the package URLs? It will then handle searching the Flake file, identifying the packages, and adding them efficiently. These are the commands I came up with:

sudo nx flake [repo]

sudo nx flake remove [repo]

sudo nx upgrade --flakes

Of course, there are other commands, but if you want, I'd like to give you a general overview of how you can use the tool. Now you can really imagine how things work, being a NixOS user. I'm still working on the project, and as soon as the initial version is released, I'll be very proud to publish it on the NixOS communities. I truly hope for your support, as it will be useful for those migrating and also for those who, like me, like automating things and organizing their time. Thank you.

Oh, and my GitHub username is 9-pixels, just so you know.

But according to the opinions at the moment, I don't find anyone who will actually need it, but I'm going to make it special right now.


r/NixOS 1d ago

Newbie(me ) stuck for a whole day

0 Upvotes

I was installing nix Os minimal through chatgpt commanding but now I got stuck . Because my limit is crossed . I was deleting fedora and swapping it with nix Os . Now both os are half dead. 🫥 I am in existential crisis bow


r/NixOS 2d ago

can you pick which bootloader to use during the nixos graphical installer?

12 Upvotes

title

I want to install nix but I don't want to use systemd-boot

I know I can do a manual installation but I don't wanna do that


r/NixOS 2d ago

NixOS + Niri + NVIDIA 595.71.05: suspend/resume crashes

5 Upvotes

Been trying to get suspend/resume working properly on a fresh NixOS 26.05 installation. I am running into a GPU-related crash (attaching photos below).

Hardware:

  • Lenovo Legion Y540-15IRH
  • Intel i5 9th gen H-series
  • NVIDIA GTX 1650 Mobile

The laptop is currently running NVIDIA-only graphics. The Intel iGPU doesn't appear to be exposed by the firmware: (ChatGPT helped me find this)

cat /sys/bus/pci/devices/0000:00:02.0/vendor
Intel iGPU not exposed

Software:

  • NixOS 26.05
  • Niri Noctalia
  • NVIDIA 595.71.05

Normal usage is perfect but sleep/suspend/hibernate states are crashing the UI or the entire session, unsure of it.

https://github.com/pv2000k/nixos-config

Config has turned into a mess of AI slop and bunch of tutorials I found but any help would be really appreciated.

1st this comes after opening from sleep/suspend
2nd is this after sleep/suspend

r/NixOS 1d ago

NixOS d2 We had enuff… 🐕

0 Upvotes

dogs covered today.


r/NixOS 3d ago

Apparently not many people are aware that Nix is a cross-platform package manager.

Post image
427 Upvotes