News for hackers. Stuff that matters.
Re:Home Lab Beginners guide by k8svet on Friday March 08, 2024 @02:35PM (#39645273)
>I have notes on how I did stuff, if necessary. I used to keep ansible playbooks but they were just an overkill. Does it even make sense to write a playbook for a system that I'll reinstall in three or four years ? Probably not.

Yea, sure, except what if the one-time configuration was in a Nix file that will continue being exactly as useful for years?

Folks applying the Ansible mindset to NixOS are missing the point. NixOS is *not like a runbook*. It's declarative, it's prescriptive, it's not some god-forsaken state machine that tries to paper over the horrors of modern computing. It IS the definition of my computers, not some glorified pile of scripts and conditional checks encoded in fking jinja. The same as it's been mostly for 8 years now.

Re:Home Lab Beginners guide by znpy on Friday March 08, 2024 @08:04PM (#39648378)
x doubt
Re:Home Lab Beginners guide by k8svet on Friday March 08, 2024 @08:13PM (#39648429)
Which part? Like, that's what NixOS is. My config repo is declarative, describes in its history every machine I've owned. You could rebuild them at any point in time and get an identical exact machine image out.

Idk, this is why it's hard to talk about nix with people that think they know it but then also openly doubt things that you will one day take for granted if you take the time to learn it.

Re:Home Lab Beginners guide by Affric on Saturday March 09, 2024 @04:46AM (#39650592)
When people say Nix is declarative do they mean like SQL/Prolog?
Re:Home Lab Beginners guide by znpy on Saturday March 09, 2024 @08:30AM (#39651463)
> Yea, sure, except what if the one-time configuration was in a Nix file that will continue being exactly as useful for years?

Still useless. Software change, the configs i make today might not make sense or even work in 3-5 years.

Nix and stuff (ansible etc) only make sense if you have to reinstall your systems multiple times in a single week (fine if your hobby is reinstalling linux on your laptop).

But if you do a full reinstall once every five years then it’s largely an exercise in futility.

Re:Home Lab Beginners guide by k8svet on Monday March 11, 2024 @06:32PM (#39673966)
Except that Nix literally solves that problem by abstracting over the underlying config.

Y'all don't know what you're talking about and once again the Ansible comparison belies in.

>reinstall once every five years then it’s largely an exercise in futility.

You are as wrong as you think your are right, I'd know I've been using NixOS for 8 years. You're just wrong.