{ config, lib, pkgs, ... }: { # Pin current nixpkgs channel and flake registry to the nixpkgs version # the host got build with nix.nixPath = lib.mkForce [ "nixpkgs=\\${lib.cleanSource pkgs.path}" ]; nix.registry = lib.mkForce { "nixpkgs" = { from = { type = "indirect"; id = "nixpkgs"; }; to = { type = "path"; path = lib.cleanSource pkgs.path; }; exact = true; }; }; }