flake-parts/setups/nixos: fix code

This commit is contained in:
Gabriel Arazas 2024-03-06 16:25:45 +08:00
parent 0f593318c5
commit c5aa3ffa68
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -460,10 +460,10 @@ 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}}";
};
nix.settings.nix-path = lib.mkBefore [
"home-manager=${inputs.${setupConfig.homeManagerBranch}}"
"nixpkgs=${inputs.${setupConfig.nixpkgsBranch}}"
];
}
(lib.mkIf (setupConfig.domain != null) {