Hyprland import home-manager session variables
This commit is contained in:
parent
6a7b831507
commit
aa126bb930
|
@ -6,12 +6,7 @@ let
|
|||
shortcuts = inputs.self.packages.${pkgs.system}.shortcuts;
|
||||
in lib.mkMerge [
|
||||
# Hyprland specific configuration
|
||||
(lib.mkIf hyprland {
|
||||
wayland.windowManager.hyprland.extraConfig = ''
|
||||
env = QT_QPA_PLATFORMTHEME,qtct
|
||||
env = QT_STYLE_OVERRIDE,kvantum
|
||||
'';
|
||||
})
|
||||
(lib.mkIf hyprland { })
|
||||
# General configuration
|
||||
(lib.mkIf hyprland {
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -34,12 +34,21 @@ in with lib; {
|
|||
recommendedEnvironment = true;
|
||||
systemdIntegration = false;
|
||||
extraConfig = ''
|
||||
# Set environment variables to force wayland
|
||||
env = XCURSOR_SIZE,24
|
||||
# env = GDK_BACKEND,wayland,x11
|
||||
# env = QT_QPA_PLATFORM,wayland;xcb
|
||||
# env = SDL_VIDEODRIVER,wayland
|
||||
# env = CLUTTER_BACKEND,wayland
|
||||
# import home manager session variables
|
||||
${lib.concatStringsSep "\n" (builtins.attrValues
|
||||
(builtins.mapAttrs (name: value: "env = ${name},${value}")
|
||||
config.home.sessionVariables))}
|
||||
|
||||
# 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 {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
|
|
Loading…
Reference in New Issue