about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-11-26 13:16:04 +0100
committerAlyssa Ross <hi@alyssa.is>2023-11-26 13:16:04 +0100
commit06370a6f922d1bff9533e2114fcf610acbc30a89 (patch)
tree252a5bf799c04ec3c86a1459e0b51cf87efe3066 /modules
parentfb68876e0a3c32c14ce6731192403d18737ef4c7 (diff)
downloadnixlib-06370a6f922d1bff9533e2114fcf610acbc30a89.tar
nixlib-06370a6f922d1bff9533e2114fcf610acbc30a89.tar.gz
nixlib-06370a6f922d1bff9533e2114fcf610acbc30a89.tar.bz2
nixlib-06370a6f922d1bff9533e2114fcf610acbc30a89.tar.lz
nixlib-06370a6f922d1bff9533e2114fcf610acbc30a89.tar.xz
nixlib-06370a6f922d1bff9533e2114fcf610acbc30a89.tar.zst
nixlib-06370a6f922d1bff9533e2114fcf610acbc30a89.zip
modules/sway: set -e on portal activation
This would have caught when I was trying to start a unit that didn't
exist.
Diffstat (limited to 'modules')
-rw-r--r--modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix b/modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix
index 4cee84891539..892e6a280d4c 100644
--- a/modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix
+++ b/modules/workstation/windowing/sway/xdg-desktop-portal-wlr/default.nix
@@ -5,6 +5,7 @@
 
   programs.sway.extraConfig = ''
     exec ${pkgs.writeShellScript "sway-portal-environment" ''
+      set -e
       dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
       systemctl --user stop pipewire xdg-desktop-portal xdg-desktop-portal-wlr
     ''}