r/NixOS 2h ago

Shutdown log messags

Post image
3 Upvotes

Whenever I poweroff or reboot my machine, I go with this log messags on tty. The system actually works with reboot or power off. I've already searched about this on Google and found that this is harmless and I can use it. But I just can't ignore those messages. Feels like I'm getting error or something. So anyone know how to solve this?

P.S. I found a discussion related to this problem , here is this. I already read again and again but I can't figure it out. Can someone please solve for me? Thanks anyway.


r/NixOS 16h ago

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

20 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 9h ago

NixOS on Surface tablet

4 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 14h ago

where to learn nix

5 Upvotes

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


r/NixOS 19h 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 19h 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 2h 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 1d ago

Do you consider NixOS a hobby?

46 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 1d ago

The holy grail of nixpkgs: version ranges

Thumbnail fzakaria.com
125 Upvotes

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

Trying to install nix on xplore xslate b10 and need advice

Thumbnail gallery
9 Upvotes

I was trying to install the nix os minimal on this thing and it refuses to work, every time I tried to boot from the usb it would just go to a black screen like in the photos. I was trying to follow the install guide best I could considering what the thing is. Honestly this is my first Reddit post and if this is the wrong subreddit or if you need more information I’ll do my best to oblige. I would really appreciate any and all advice.


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 1d ago

Derivations to Deployments: Practical Nix in Production

Thumbnail youtube.com
13 Upvotes

r/NixOS 10h 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 1d ago

[Hyprland] NHN Catppuccin Purism

Enable HLS to view with audio, or disable this notification

24 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 10h 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.


r/NixOS 15h 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 1d ago

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

11 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 1d 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… 🐕

Enable HLS to view with audio, or disable this notification

0 Upvotes

dogs covered today.


r/NixOS 2d ago

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

Post image
417 Upvotes

r/NixOS 2d ago

[RANT] Nix hit me like a heroin addiction

61 Upvotes

And you know what the worst part is? I didn't even care about declarative configuration! But Nix has the best of all worlds in a way nothing else does. It's like if you took all the goods from atomic distros and flatpaks with none of the bads. The FHS-noncompliance is hitting me like a truck because I play a lot of recompilations and non-steam videogames that are only distributed as crude binaries (pokèwilds, the symphony of the night recomp, sm64dx-coop, bb-launcher, rpg paper maker etc). But god, now that I've tried NixOS, every other distro feels lacking. I don't think I can go back to the messy-ness of traditional distros, nor the confinement headaches of immutable distros. I am so glad NixOS exists


r/NixOS 1d ago

How to set up file management?

1 Upvotes

I recently installed NixOS from minimal ISO mainly following the docs. After installation, I accidentally deleted my Downloads folder which had some data which exposed the fact my trash folder 'location is not supported'. Atp ChatGPT is asking me to install Gio and GVFS and I am receiving the output 'gio: trash :: Operation not supported'.

Would love some guidance on how to approach this?

P.S. Found another issue, I am unable to switch wifi, specifically, from home wifi to mobile hotspot.


r/NixOS 2d ago

Question about contributions

8 Upvotes

I noticed that typescript was out of date in nixpkgs unstable. I didn’t see any PRs waiting for its update. I’ve never contributed before but figured this one should be easy since it was done for typescript-go and the repo was moved over so it should just be a quick change and an alias.

I got it working but the nixpkgs review command stopped showed 15 dependencies that depend on the older versions (some tsconfig options were removed it looks like)

I’m just want to know what the general protocol is. Should I keep the old version around and call it typescript_5 and update those packages to use that version? Is there something else I should do?

Happy to do the work just want to make sure it’s done the right way and respectfully and in the community guidelines.

I moved it to a draft since it doesn’t pass yet.

https://github.com/NixOS/nixpkgs/pull/558890

Here’s the pr if anyone would be willing to help me with the projects conventions I would appreciate it I believe I read through the contributing.md but it’s possible I missed something.