fix(sway): source profile in sway wrapper
This commit is contained in:
parent
31ec6306eb
commit
e084d5f234
|
@ -12,7 +12,21 @@ in mkIf gui {
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Sway
|
Name=Sway
|
||||||
Comment=An i3-compatible Wayland compositor
|
Comment=An i3-compatible Wayland compositor
|
||||||
Exec=sway --unsupported-gpu
|
Exec=${pkgs.writeTextFile {
|
||||||
|
name = "sway-wrapper";
|
||||||
|
executable = true;
|
||||||
|
text = ''
|
||||||
|
#!${pkgs.zsh}/bin/zsh
|
||||||
|
SHLVL=0
|
||||||
|
for profile in ''${(z)NIX_PROFILES}; do
|
||||||
|
fpath+=($profile/share/zsh/site-functions $profile/share/zsh/$ZSH_VERSION/functions $profile/share/zsh/vendor-completions)
|
||||||
|
done
|
||||||
|
exec sway --unsupported-gpu
|
||||||
|
'';
|
||||||
|
checkPhase = ''
|
||||||
|
${pkgs.stdenv.shellDryRun} "$target"
|
||||||
|
'';
|
||||||
|
}}
|
||||||
Type=Application
|
Type=Application
|
||||||
'';
|
'';
|
||||||
} // { providedSessions = [ pkgs.sway.meta.mainProgram ]; })
|
} // { providedSessions = [ pkgs.sway.meta.mainProgram ]; })
|
||||||
|
|
Loading…
Reference in a new issue