Agree that there doesn't seem to be anything weird here, the only suggestion I can add is that you could make it a bit more idiomatic by changing
home-manager.users.bs = import ./hosts/default/home.nix;
to
home-manager.users.bs.imports = [ ./hosts/default/home.nix ];
You don't seem to actually use
inputs
in yourhome.nix
file so in principle you should be able to remove theline. Doesn't hurt to keep it, though, if you think you may use
inputs
in the future.The change you propose in 3 would not work the way you expect, the
extraSpecialArgs
needs to be set for Home Manager, not NixOS. My guess is that thenixosSystem
function simply would ignore theextraSpecialArgs
parameter.