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.
Instead of
configuration.nix
importingusers/setup.nix
, which in turn importsusers/[each_user].nix
, I should instead be importing each user's file fromconfiguration.nix
directly and -- crucially -- importingusers/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 singlecommon.nix
file.This was inspired by the article at the following link.