git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31371 from gnidorah/sway

sway module: passthrough sway binary when needed

commit3ad0845fb024fc16bb4c2648e3fe68c5252aea75 authorFranz Pletz <fpletz@fnordicwalking.de> dateFri 24 Nov 2017, 10:03 (9 years ago) parenta59864cd0bcade
1 file changed+4−1
nixos/modules/programs/sway.nix+4−1
nixos/modules/programs/sway.nix+4−1
@@ -8,8 +8,11 @@ let
88
99 swayWrapped = pkgs.writeScriptBin "sway" ''
1010 #! ${pkgs.stdenv.shell}
11+ if [ "$1" != "" ]; then
12+ sway-setcap "$@"
13+ exit
14+ fi
1115 ${cfg.extraSessionCommands}
12− PATH="${sway}/bin:$PATH"
1316 exec ${pkgs.dbus.dbus-launch} --exit-with-session sway-setcap
1417 '';
1518 swayJoined = pkgs.symlinkJoin {