tiredofit / home

Home-Manager configuration ala Nix flakes
https://tiredofit.ca
28 stars 6 forks source link

Just a couple of questions that I'm not clear on... #3

Open mayersj1 opened 7 months ago

mayersj1 commented 7 months ago

Thanks for this! It's a great reference. I do have a few questions though.

My setup consists of 3 Macs running MacOS and one Intel laptop running NixOS. All of them have home-manager installed in standalone fashion.

  1. Does your configuration here take into account different architectures? I see some references to isLinux and isDarwin as well as the different system architectures used by flake-utils.
  2. I'm trying to basically get some modularity going by being able to detect the user.host and then the architecture to install system specific packages. I haven't actually tried to build this yet.
  3. I think, if I'm reading it all correctly, the assumption is that your hosts are all linux machines?

Thanks in advance!

tiredofit commented 7 months ago

Hi thanks, this configuration seems to work for me, but has a few rough edges.

I have run Home Manager in a Mac/Darwin environment in early stages of this configuration built but don't have any active hosts under Darwin at this time, so there may be some configuration required. On Line 193 of the flake.nix I'm declaring an explicit system type for one of my configurations which is forcing to use arm64/aarch64 packages as opposed to my default of amd64 architecture. That should give you some pointers on how to adapt your configuration for the same.

I encountered a similar need with different applications installed or built per host or per role so attempted that with the rather messy roles/ folder and then the home/ folder with the various "orgs" and generic configurations. If you find an easier way please let me know. It's certainly working but I also have a tendency of introducing far too many wheels into a solution that may only require one.

mayersj1 commented 7 months ago

Thanks so much Dave! Appreciate your responses.