1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-25 02:10:57 +01:00

home-environment: add link for current profile

This link is needed to make the `delete-older-than` option for
`nix-collect-garbage` work as expected.
This commit is contained in:
Robert Helgesson 2017-02-05 23:00:04 +01:00
parent 119c7b2538
commit 6794efdf68
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
2 changed files with 3 additions and 0 deletions

View file

@ -20,6 +20,7 @@ function setupVars() {
oldGenPath="$(readlink -e "$gcPath/current-home")"
fi
genProfilePath="$profilesPath/home-manager"
newGenPath="@GENERATION_DIR@";
newGenProfilePath="$profilesPath/home-manager-$newGenNum-link"
newGenGcPath="$gcPath/current-home"
@ -52,3 +53,4 @@ $VERBOSE_ECHO " oldGenPath=$oldGenPath"
$VERBOSE_ECHO " newGenPath=$newGenPath"
$VERBOSE_ECHO " newGenProfilePath=$newGenProfilePath"
$VERBOSE_ECHO " newGenGcPath=$newGenGcPath"
$VERBOSE_ECHO " genProfilePath=$genProfilePath"