To get started: Install NixOS, grab your /etc/nix/configuration.nix, and /etc/nix/hardware-configuration.nix (from the top of my head) and throw them in a git repo. nix-shell -p <application> if you quickly need a shell with a specific (temporary) program, like git (just for bootstrapping; add git to the configuration.nix if you wish to keep it.
Start with that, and slowly keep adding programs, configuration. If you eventually wish to add a second computer to the one configuration (so you can start reusing configuration), do that. Keep steps small.
Here you can dig through each step I take in my nixcfg - I started with just the configuration.nix, and share that between machines, but it turns out you’re supposed to add the hardware-conguration.nix to the repo as well, so then I started to do that (with still a shared configuration.nix. Well, partially:
To get started: Install NixOS, grab your
/etc/nix/configuration.nix, and/etc/nix/hardware-configuration.nix(from the top of my head) and throw them in a git repo.nix-shell -p <application>if you quickly need a shell with a specific (temporary) program, like git (just for bootstrapping; add git to theconfiguration.nixif you wish to keep it.Start with that, and slowly keep adding programs, configuration. If you eventually wish to add a second computer to the one configuration (so you can start reusing configuration), do that. Keep steps small.
Here you can dig through each step I take in my nixcfg - I started with just the
configuration.nix, and share that between machines, but it turns out you’re supposed to add thehardware-conguration.nixto the repo as well, so then I started to do that (with still a sharedconfiguration.nix. Well, partially:https://github.com/NostraDavid/nixcfg/commits/master/?after=78d40edc8b756088a73fd087808d438eabbcf06f+401
Read nixstory.md if you want to see a quick LLM-generated history of how my repo changed over time (based on my git history).
So it’s kinda like klipper/mainsail but for an operating system?