fix home-manager upgrades
This commit is contained in:
parent
1eb28df08d
commit
b0f7a31a1c
1 changed files with 5 additions and 0 deletions
|
@ -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')
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue