{ pkgs, lib, ... }: { home.packages = [ pkgs.freeciv_gtk pkgs.cockatrice ]; home.sessionVariables = { # Workaround: https://github.com/cemu-project/Cemu/issues/1150#issuecomment-3684818077 # Source: https://github.com/mdqinc/SDL_GameControllerDB SDL_GAMECONTROLLERCONFIG = lib.concatStringsSep "\n" [ "030000006d0400001ac2000000000000,Logitech Precision Gamepad,platform:Linux,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,dpup:-a1,dpdown:+a1,dpleft:-a0,dpright:+a0,lefttrigger:b6,righttrigger:b7" "03000000790000000600000010010000,Microntek 0079:0006,platform:Linux,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7" ]; }; }