Hi there, I have a few questions. I have a working home-manager config using flakes, where the structure jives with my brain. But I had a few questions before I dig on and dev the rest. I have included a link to my repo so that people can see how I have it now.
My path so far was to install via the graphical ISO (gnome), but I I want to figure out what the reinstall path looks like. (some of my below questions will reflect that.)
Questions
- Right now, this code is for my laptop only, but I have a tower I am going to add later. What is the best way to structure or modify my code for multiple hosts?
- Right now, I have my
configuration.nix
, andhardware-configuration.nix
mostly as the installer wrote them. I have a few system-level tweaks in theconfiguration.nix
.- When reinstalling, should I just do so via the graphical ISO, and then drop my files into place after?
- And how would I abstract the disk configuration (ie disk id’s, etc) for the reinstalls?
- Or, what is the way to structure the code to account for a reload?
- Currently, I am just running all of these files out of
/etc/nixos
, and runsudo nixos-rebuild switch
to update everything (well actually from myMakefile
). Is there a better or more recommended way? I know some people like to keep home-manager separate, but I prefer the all-in-one approach. - Do you still keep your system-wide packages in
configuration.nix
, or do you abstract it into the files called through home-manager? - How would you structure your system-wide settings (ie services, firewall, etc)?
I was considering importing a separate file into configuration.nix
that had all my system-wide cfg, so I could just import it after reload.
Any other feedback or suggestions are welcome!! Thanks for your time.
Repo
Repo Link