parent
aa5ba177cc
commit
0dfa1eef25
|
@ -130,7 +130,7 @@ in
|
||||||
home.file.".xprofile".text = ''
|
home.file.".xprofile".text = ''
|
||||||
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
||||||
|
|
||||||
if [[ -e "$HOME/.profile" ]]; then
|
if [ -e "$HOME/.profile" ]; then
|
||||||
. "$HOME/.profile"
|
. "$HOME/.profile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ in
|
||||||
home.file.${cfg.scriptPath} = {
|
home.file.${cfg.scriptPath} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = ''
|
text = ''
|
||||||
if [[ ! -v HM_XPROFILE_SOURCED ]]; then
|
if [ -z "$HM_XPROFILE_SOURCED" ]; then
|
||||||
. ~/.xprofile
|
. ~/.xprofile
|
||||||
fi
|
fi
|
||||||
unset HM_XPROFILE_SOURCED
|
unset HM_XPROFILE_SOURCED
|
||||||
|
@ -167,7 +167,7 @@ in
|
||||||
systemctl --user stop graphical-session-pre.target
|
systemctl --user stop graphical-session-pre.target
|
||||||
|
|
||||||
# Wait until the units actually stop.
|
# Wait until the units actually stop.
|
||||||
while [[ -n "$(systemctl --user --no-legend --state=deactivating list-units)" ]]; do
|
while [ -n "$(systemctl --user --no-legend --state=deactivating list-units)" ]; do
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
. "/test-home/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
. "/test-home/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||||
|
|
||||||
if [[ -e "$HOME/.profile" ]]; then
|
if [ -e "$HOME/.profile" ]; then
|
||||||
. "$HOME/.profile"
|
. "$HOME/.profile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
if [[ ! -v HM_XPROFILE_SOURCED ]]; then
|
if [ -z "$HM_XPROFILE_SOURCED" ]; then
|
||||||
. ~/.xprofile
|
. ~/.xprofile
|
||||||
fi
|
fi
|
||||||
unset HM_XPROFILE_SOURCED
|
unset HM_XPROFILE_SOURCED
|
||||||
|
@ -13,6 +13,6 @@ systemctl --user stop graphical-session.target
|
||||||
systemctl --user stop graphical-session-pre.target
|
systemctl --user stop graphical-session-pre.target
|
||||||
|
|
||||||
# Wait until the units actually stop.
|
# Wait until the units actually stop.
|
||||||
while [[ -n "$(systemctl --user --no-legend --state=deactivating list-units)" ]]; do
|
while [ -n "$(systemctl --user --no-legend --state=deactivating list-units)" ]; do
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue