fix home-manager upgrades

This commit is contained in:
Max Headroom 2022-08-03 21:03:47 +02:00
parent 1eb28df08d
commit b0f7a31a1c

View file

@ -79,4 +79,9 @@ in
};
programs.home-manager.enable = systemProfile == "headless";
programs.zsh.enable = true;
home.activation = lib.mkIf (systemProfile == "headless") {
prepareInstallPackages = lib.hm.dag.entryBetween [ "installPackages" ] [ "writeBoundary" ] ''
nix profile remove $(nix profile list | grep -o '/[^ ]*home-manager-path')
'';
};
}