about summary refs log tree commit diff
path: root/home/wm/sway
diff options
context:
space:
mode:
Diffstat (limited to 'home/wm/sway')
-rw-r--r--home/wm/sway/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/home/wm/sway/default.nix b/home/wm/sway/default.nix
index 45fd929..ae8316f 100644
--- a/home/wm/sway/default.nix
+++ b/home/wm/sway/default.nix
@@ -27,6 +27,13 @@ in
 
     wayland.windowManager.sway = {
       enable = true;
+      # in order to import some variables (e.g. PATH) so that all the
+      # units that will be started have all the required environment
+      # variables
+      extraSessionCommands = "systemctl --user import-environment";
+      # this will start sway-session.target and run
+      # dbus-update-activation-environment
+      systemdIntegration = true;
       config = {
         # FIXME: this should be a variable
         terminal = "alacritty";
@@ -104,10 +111,6 @@ in
           # This is for aptos
           "eDP-1" = { scale = "1.3"; };
         };
-        startup = [{
-          command = ''
-            exec "systemctl --user import-environment; systemctl --user start sway-session.target"'';
-        }];
       };
     };
   };