this post was submitted on 06 Jan 2025
84 points (97.7% liked)

Nix / NixOS

1988 readers
1 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

After around 4 months of reading manuals, forums, watching tutorials and asking online, I've eventually managed to have an almost properly working NixOS installation on my pc and wiped the Win10 partition (I have win10 in a VM as a fallback mechanism)!

I started this journey initially wanting to switch to linux and I started my tests with Debian Stable. But the repo was really old (as expected), so I tried the Testing variant. But this repo had missing packages. I tried Unstable for a few moments too, but I crashed and didn't want to bother. I figured that I could make a script to (declaratively?) fetch and auto update packages from github, bypassing Debian Testing.

Then it was when I looked at NixOS and found out that the whole system kinda does what my script would do, but much much much better. Almost ever since then I tried to learn almost everything I needed and a few extra stuff to get it working. This is the configuration I've come up with so far (it's probably considered simple).

I also made a guide to keep track of what I was doing and what I would have to do once I took the decision to transition to Linux/NixOS, hopefully it might help others too:

https://codeberg.org/BlastboomStrice/LinuxPlan/src/branch/main/LinuxPlan.md

Finally I can be called a Linux user :)

all 13 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 1 month ago (3 children)

Nice! I'd still love to switch to Nix, but that learning curve is steep, and every time I try to learn it, I still feel mystified by the end of it. Any tips?

[–] [email protected] 6 points 1 month ago

Hm, I see, it can be difficult.

Before those 4 months, I knew almost nothing about linux. Like, just a very few basic commands and I had managed to follow a random portuguese video (using translated subtitles) about compiling an android kernel on Ubuntu to root my device (had ~no idea what I was doing).

Around September I first installed Debian in a VM on windows (virtualbox) and tried to replicate my windows usage on debian.

I started writing the markdown guide I shared in my post in order to keep track of things and know how to re do what I did.

Around October I steeree towards NixOS and also started using linux on dual boot (on an external ssd), because the VM was too slow for my needs.

Gradually (while taking notes in the guide) I got almost everything working on NixOS, took my backups and precautions and a few days ago I decided to wipe Windows and replace thek with NixOS. It has been a somewhat intense 3 days dealing with configuring NixOS (I didn't account for all of my use cases and forgot to do some stuff, which delayed me further), but eventually I made it :)

So, I suppose it needs patience, will to learn and probably most importantly free time. Maybe you can find anything useful in the guide (at the end I have listed loooots of bookmarks I kept, in case you want resources). I'm also not very sure if knowing linux would help, as I don't know if I would attempt to use NixOS, had I spent days configuring another distro previously.😄

[–] [email protected] 4 points 1 month ago (1 children)

Start ny NOT jumping into nixos. Start using home manager on whatever distro you currently use. Then slowly move whatever programs or dots you currently have over to it, uninstall the aur/apt packages as you define them in nix. At first you'll have a clear goal: emulate your user environment. Once you've got your user environment defined, the jump to nixos would be easy (if you even want to) because you can use your home-manager config as the starting point. And depending on how you use your computer, home-manager may end up being most of what you care about.

[–] [email protected] 2 points 1 month ago

Ah, interesting. I'd heard of home manager, but I don't know much about it. Sounds like I should take a look!

[–] [email protected] 5 points 1 month ago (1 children)

Dang, you really like printers!

I had a similar journey to yours over a years ago, but you seem much better prepared than I was.

Welcome to the club

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

Hahaha, the funny thing is that I didnt manage to get my hp laserjet 1020 to work, but I was too bothered to get even deeper into the issue (I have alternative ways to print).😆

[–] [email protected] 4 points 1 month ago

Welcome to the party!

[–] [email protected] 4 points 1 month ago

Welcome to the NixOS club! Veloren fan here too!

[–] voklen 2 points 1 month ago

Nice config you've got there and welcome to NixOS!