nix: workaround home-manager lix compatibility issue https://github.com/nix-community/home-manager/issues/8786
1 file changed, 13 insertions(+), 0 deletions(-)
changed files
M user/settings/nix.nix → user/settings/nix.nix
@@ -1,4 +1,5 @@ { + config, pkgs, lib, ...@@ -14,6 +15,18 @@ # needed for "standalone" home-manager, conflicts with module package = lib.mkDefault lixPackageSet.lix; }; programs.direnv.nix-direnv.package = lixPackageSet.nix-direnv; + + # workaround https://github.com/nix-community/home-manager/issues/8786 + home.activation.installPackages = lib.mkForce ( + lib.hm.dag.entryAfter [ "writeBoundary" ] '' + nixProfileRemove home-manager-path + if [[ -e ${config.home.profileDirectory}/manifest.json ]]; then + run nix profile install ${config.home.path} + else + run nix-env -i ${config.home.path} + fi + '' + ); home.packages = with pkgs; [ angrr