1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 00:18:30 +02:00

dconf: handle missing oldGenPath

This commit is contained in:
Robert Helgesson 2022-10-16 17:59:57 +02:00
parent 2ecb3ea990
commit 86bc0e349f
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -105,9 +105,11 @@ in {
export DCONF_DBUS_RUN_SESSION="${pkgs.dbus}/bin/dbus-run-session"
fi
${cleanup} \
"$oldGenPath/${statePath}" \
"$newGenPath/${statePath}"
if [[ -v oldGenPath ]]; then
${cleanup} \
"$oldGenPath/${statePath}" \
"$newGenPath/${statePath}"
fi
$DRY_RUN_CMD $DCONF_DBUS_RUN_SESSION ${pkgs.dconf}/bin/dconf load / < ${iniFile}