Commit a4723e3fee1f

Vincent Demeester <vincent@sbr.pm>
2022-08-22 18:26:10
systems/wakasu: trying some stuff with sway
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent e90d0dc
Changed files (5)
systems
hardware
modules
users
vincent
systems/hardware/thinkpad.nix
@@ -29,6 +29,7 @@
   hardware = {
     trackpoint.enable = false;
     cpu.intel.updateMicrocode = true;
+    hardware.opengl.extraPackages = with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau intel-ocl intel-media-driver beignet ];
   };
   services = {
     acpid = {
systems/modules/desktop/base.nix
@@ -128,6 +128,7 @@ in
           userServices = true;
         };
       };
+      udisks2.enable = true;
 
       # Make `/run/user/X` larger.
       logind.extraConfig = ''
systems/modules/desktop/sway.nix
@@ -24,10 +24,12 @@ in
     xdg = {
       portal = {
         enable = true;
+        wlr.enable = true;
         extraPortals = with pkgs; [
           xdg-desktop-portal-wlr
           xdg-desktop-portal-gtk
         ];
+        gtkUsePortal = true;
       };
     };
 
systems/modules/profiles/work.nix
@@ -20,7 +20,7 @@ in
     environment.systemPackages = with pkgs; [
       krb5
       (google-chrome.override {
-        commandLineArgs = "--auth-negotiate-delegate-whitelist='*.redhat.com' --auth-server-whitelist=.redhat.com";
+        commandLineArgs = "--auth-negotiate-delegate-whitelist='*.redhat.com' --auth-server-whitelist=.redhat.com --enable-features=UseOzonePlatform --enable-gpu --ozone-platform=wayland";
       })
       libnotify
     ];
users/vincent/core/zsh.nix
@@ -80,9 +80,9 @@ in
     '';
     loginExtra = ''
       # export GOPATH=${config.home.homeDirectory}
-      if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then
-        exec sway
-      fi
+      # if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then
+      #   exec sway
+      # fi
     '';
     profileExtra = ''
       if [ -e /home/vincent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/vincent/.nix-profile/etc/profile.d/nix.sh; fi