Dynamic per-host Home Manager configs via flake module (flakes-vaiq)
Create home-hosts.nix flake module to auto-generate homeConfigurations for all NixOS hosts, with optional host mixins. Delete per-host config files.
Summary of Changes
- Created
modules/flake/home-hosts.nix: dynamically generates homeConfigurations for all NixOS hosts by readingconfigurations/nixos/dirs, with optional per-host mixins frommixins/home/hosts/<host>.nix - Created
mixins/home/hosts/gpd-p2.nix: imports incus/edger mixin only for gpd-p2 - Updated
modules/flake/activate-home.nix: adds fallback to plainyjparkconfig when hostname isn’t in known NixOS hosts - Deleted all per-host
configurations/home/yjpark@<host>.nixfiles (pc, edger, alienware-13, hp-g1, gpd-p2) - Key fix: used
lib.mkForceon wholelegacyPackagesattrset (not just homeConfigurations sub-key) to override autoWire’s perSystem definition