From 4cc835dddce61b41075c3c00b54185ca30f6358e Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Fri, 11 Jul 2025 16:09:09 +0200 Subject: [PATCH 1/3] Change retroarch module location --- modules/home/default.nix | 1 - modules/home/gaming.nix | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/home/default.nix b/modules/home/default.nix index d399749..e94b8d6 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -25,7 +25,6 @@ ++ [(import ./nextcloud.nix)] # nextcloud client ++ [(import ./nvim.nix)] # neovim editor ++ [(import ./packages.nix)] # other packages - ++ [(import ./retroarch.nix)] ++ [(import ./scripts)] # personal scripts ++ [(import ./spotify.nix)] ++ [(import ./starship.nix)] # shell prompt diff --git a/modules/home/gaming.nix b/modules/home/gaming.nix index 086566e..f1fe994 100644 --- a/modules/home/gaming.nix +++ b/modules/home/gaming.nix @@ -4,6 +4,8 @@ inputs, ... }: { + imports = [(import ./retroarch.nix)]; + home.packages = with pkgs; [ ## Utils # gamemode From 5dac54a9d970cabcaa69fa9523fe89efdcde6772 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Fri, 11 Jul 2025 16:09:42 +0200 Subject: [PATCH 2/3] Remove unneccesary waybar config --- modules/home/waybar/default.nix | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/modules/home/waybar/default.nix b/modules/home/waybar/default.nix index d263c8b..9335a1e 100644 --- a/modules/home/waybar/default.nix +++ b/modules/home/waybar/default.nix @@ -1,33 +1,4 @@ -{...}: let - custom = { - font = "JetBrainsMono Nerd Font"; - fontsize = "12"; - primary_accent = "cba6f7"; - secondary_accent = "89b4fa"; - tertiary_accent = "f5f5f5"; - background = "11111B"; - opacity = "0.98"; - cursor = "Numix-Cursor"; - palette = rec { - primary_accent_hex = "cba6f7"; - secondary_accent_hex = "89b4fa"; - tertiary_accent_hex = "f5f5f5"; - primary_background_hex = "11111B"; - secondary_background_hex = "1b1b2b"; - tertiary_background_hex = "25253a"; - - primary_accent_rgba = "rgba(203,166,247,${opacity})"; - secondary_accent_rgba = "rgba(137,180,250,${opacity})"; - tertiary_accent_rgba = "rgba(245,245,245,${opacity})"; - primary_background_rgba = "rgba(17,17,27,${opacity})"; - secondary_background_rgba = "rgba(27,27,43,${opacity})"; - tertiary_background_rgba = "rgba(37,37,58,${opacity})"; - - opacity = "1"; - }; - }; -in { - _module.args = {inherit custom;}; +{...}: { imports = [(import ./waybar.nix)] ++ [(import ./settings.nix)] From f5345af026a9207e0c9fe3422ef8b1d8de437766 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Fri, 11 Jul 2025 16:13:22 +0200 Subject: [PATCH 3/3] Use uwsm to set desktop variables, not hyprland --- modules/home/hyprland/variables.nix | 46 ++++++++++++++--------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/modules/home/hyprland/variables.nix b/modules/home/hyprland/variables.nix index 7d28466..bb68b39 100644 --- a/modules/home/hyprland/variables.nix +++ b/modules/home/hyprland/variables.nix @@ -1,31 +1,31 @@ -{ - lib, - config, - ... -}: { - home.sessionVariables = { - NIXOS_OZONE_WL = "1"; +{lib, ...}: let + variables = { + NIXOS_OZONE_WL = 1; ELECTRON_OZONE_PLATFORM_HINT = "auto"; - __GL_GSYNC_ALLOWED = "0"; - __GL_VRR_ALLOWED = "0"; - _JAVA_AWT_WM_NONEREPARENTING = "1"; - DISABLE_QT5_COMPAT = "0"; - GDK_BACKEND = "wayland"; - ANKI_WAYLAND = "1"; + __GL_GSYNC_ALLOWED = 0; + __GL_VRR_ALLOWED = 0; + _JAVA_AWT_WM_NONEREPARENTING = 1; + DISABLE_QT5_COMPAT = 0; + GDK_BACKEND = "wayland,x11,*"; + ANKI_WAYLAND = 1; DIRENV_LOG_FORMAT = ""; - WLR_DRM_NO_ATOMIC = "1"; - QT_AUTO_SCREEN_SCALE_FACTOR = "1"; - QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; - QT_QPA_PLATFORM = "wayland"; - MOZ_ENABLE_WAYLAND = "1"; - MOZ_USE_XINPUT2 = "1"; + WLR_DRM_NO_ATOMIC = 1; + QT_AUTO_SCREEN_SCALE_FACTOR = 1; + QT_WAYLAND_DISABLE_WINDOWDECORATION = 1; + QT_QPA_PLATFORM = "wayland;xcb"; + MOZ_ENABLE_WAYLAND = 1; + MOZ_USE_XINPUT2 = 1; WLR_BACKEND = "vulkan"; - WLR_NO_HARDWARE_CURSORS = "1"; - XDG_SESSION_TYPE = "wayland"; SDL_VIDEODRIVER = "wayland"; CLUTTER_BACKEND = "wayland"; }; +in { + home.sessionVariables = variables; - wayland.windowManager.hyprland.systemd.variables = ["--all"]; - wayland.windowManager.hyprland.settings.env = lib.attrsets.mapAttrsToList (name: value: "${name},${builtins.toString value}") config.home.sessionVariables; + xdg.configFile."uwsm/env".text = builtins.concatStringsSep "\n" ( + lib.attrsets.mapAttrsToList ( + name: value: "export ${name}=\"${builtins.toString value}\"" + ) + variables + ); }