about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-16 17:47:11 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-16 17:47:11 -0800
commit8a8cf9837c05b97754ff226c369144a6fbc7ec3f (patch)
treef2d5ef6c43d869ca884411491ebe64bf498a3ca8
parenthome-manager: move activate logic in users' config (diff)
downloadworld-8a8cf9837c05b97754ff226c369144a6fbc7ec3f.tar.gz
sway: install all the required packages
Diffstat (limited to '')
-rw-r--r--hosts/common/desktop/xserver.nix16
-rw-r--r--users/fcuny/desktop/sway/default.nix1
2 files changed, 15 insertions, 2 deletions
diff --git a/hosts/common/desktop/xserver.nix b/hosts/common/desktop/xserver.nix
index 58f0578..ba7647c 100644
--- a/hosts/common/desktop/xserver.nix
+++ b/hosts/common/desktop/xserver.nix
@@ -1,10 +1,24 @@
 { config, pkgs, lib, ... }:
 
 {
-
   programs.sway = {
     enable = true;
     wrapperFeatures.gtk = true;
+    extraPackages = with pkgs; [
+      brightnessctl
+      polkit_gnome
+      xsettingsd
+      swaylock
+      swayidle
+      wl-clipboard
+    ];
+    extraSessionCommands = ''
+      export SDL_VIDEODRIVER=wayland
+      export QT_QPA_PLATFORM=wayland
+      export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
+      export _JAVA_AWT_WM_NONREPARENTING=1
+      export MOZ_ENABLE_WAYLAND=1
+    '';
   };
 
   services.xserver = {
diff --git a/users/fcuny/desktop/sway/default.nix b/users/fcuny/desktop/sway/default.nix
index 7720a3b..6da123f 100644
--- a/users/fcuny/desktop/sway/default.nix
+++ b/users/fcuny/desktop/sway/default.nix
@@ -12,7 +12,6 @@
     pkgs.pavucontrol
     pkgs.wev
     pkgs.wf-recorder
-    pkgs.wl-clipboard
     pkgs.wofi
   ];