ChrisTitusTech / nixos-titus

Titus's personal NIX OS Configuration
231 stars 40 forks source link

Flake transition WIP #10

Closed munkk01 closed 9 months ago

munkk01 commented 9 months ago

[!WARNING] This was tested in a virtual machine only. Different hardware and did not install guest additions to the vm, so not all fonts/colors/background were present during testing.

Aside from missing those, the system was functional. I was able to successfully rebuild to this configuration and launch terminal/browser/steam/lutris and authenticate to gh via browser from the CLI. However, not everything was rendering properly. Picom wasn't seeming to take effect and the terminal font was a little wonky. This COULD be vm related?

Details

  1. Transitioned system to use flakes
  2. Transitioned home manager to flake installation and separate configuration files
  3. Broke out configuration files to their own folders
  4. Code cleanup

I tried not to mess too much with the base configuration you already had. This may seem like a monumental change but it's nothing crazy. I intentionally did it minimally so it could be configured further.

This is by NO means a perfect configuration, but it's a start and intended to be that way.

There is absolutely no requirement for you to use this configuration setup and I won't be bummed if you don't. What this WILL (hopefully) do at the very least, is show you how to prepare for this type of transition into the thick of NixOS.

Reproduce

[!NOTE] Change the PATH in your configuration.nix for the DWM overlay to match the path you currently have (I set it to something different during my testing). I added a FIX ME note on that line if you'd like to just search for it.

In the root folder where these configuration files live, run:

Testing

sudo nixos-rebuild dry-activate --flake ".#nixos-studio"

Actual switch

sudo nixos-rebuild switch --flake ".#nixos-studio"

[!NOTE] This may for whatever reason not work since our installations are vastly different, but I used a FRESH VM for testing purposes. If it doesn't work, have to love rollbacks!

GODSPEED MY FRIEND