r/NixOS 16h ago

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

18 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 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 3h 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 9h ago

NixOS on Surface tablet

3 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 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 3h 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 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 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 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.