flake-parts/setups/nixos: prioritize the specified nixpkgs and home-manager branches in nix-path

This commit is contained in:
Gabriel Arazas 2024-03-05 20:45:24 +08:00
parent c17eb9b29e
commit f016e180b5
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -459,6 +459,11 @@ let
{
nixpkgs.overlays = setupConfig.overlays;
networking.hostName = lib.mkDefault setupConfig.hostname;
nix.settings.nix-path = {
home-manager = lib.mkBefore "home-manager=${inputs.${config.homeManagerBranch}}";
nixpkgs = lib.mkBefore "nixpkgs=${inputs.${config.nixpkgsBranch}}";
};
}
(lib.mkIf (setupConfig.domain != null) {