Hyprland import home-manager session variables

This commit is contained in:
Nathan McCarty 2023-07-06 20:39:52 -04:00
parent 6a7b831507
commit aa126bb930
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
2 changed files with 217 additions and 213 deletions

View File

@ -6,12 +6,7 @@ let
shortcuts = inputs.self.packages.${pkgs.system}.shortcuts; shortcuts = inputs.self.packages.${pkgs.system}.shortcuts;
in lib.mkMerge [ in lib.mkMerge [
# Hyprland specific configuration # Hyprland specific configuration
(lib.mkIf hyprland { (lib.mkIf hyprland { })
wayland.windowManager.hyprland.extraConfig = ''
env = QT_QPA_PLATFORMTHEME,qtct
env = QT_STYLE_OVERRIDE,kvantum
'';
})
# General configuration # General configuration
(lib.mkIf hyprland { (lib.mkIf hyprland {
home.packages = with pkgs; [ home.packages = with pkgs; [

View File

@ -34,12 +34,21 @@ in with lib; {
recommendedEnvironment = true; recommendedEnvironment = true;
systemdIntegration = false; systemdIntegration = false;
extraConfig = '' extraConfig = ''
# Set environment variables to force wayland # import home manager session variables
env = XCURSOR_SIZE,24 ${lib.concatStringsSep "\n" (builtins.attrValues
# env = GDK_BACKEND,wayland,x11 (builtins.mapAttrs (name: value: "env = ${name},${value}")
# env = QT_QPA_PLATFORM,wayland;xcb config.home.sessionVariables))}
# env = SDL_VIDEODRIVER,wayland
# env = CLUTTER_BACKEND,wayland # Setup missing XDG variables
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
# Make applications respect wayland
env = GDK_BACKEND,wayland,x11
env = QT_QPA_PLATFORM,wayland;xcb
env = SDL_VIDEODRIVER,wayland
env = CLUTTER_BACKEND,wayland
input { input {
kb_layout = us kb_layout = us
kb_variant = kb_variant =