all repos — nixfiles @ e95c6e59f4d80c6a1c05b07282a2f4304884fe31

System and user configuration, managed by nix and home-manager

nix: workaround home-manager lix compatibility issue https://github.com/nix-community/home-manager/issues/8786

Alin
commit

e95c6e59f4d80c6a1c05b07282a2f4304884fe31

parent

24a56cf77eedea0651c60465c5f93cecf797601d

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