HunterThueson / dots

Dotfiles for my NixOS configuration
GNU Lesser General Public License v2.1
0 stars 0 forks source link

refactor `users/setup.nix` to instead use `users/common.nix` (see comments for details) #56

Open HunterThueson opened 1 year ago

HunterThueson commented 1 year ago

Instead of configuration.nix importing users/setup.nix, which in turn imports users/[each_user].nix, I should instead be importing each user's file from configuration.nix directly and -- crucially -- importing users/common.nix from each user's file.

This would be a much better way to have distinct per-user home-manager configurations while still (properly) eliminating duplicate code with a single common.nix file.

This was inspired by the article at the following link.

https://nix-community.github.io/home-manager/index.html#_how_to_set_up_a_configuration_for_multiple_users_machines