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;
|
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; [
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue