From 227b2b1f67f0c9e0637da6b75544a3be02226b76 Mon Sep 17 00:00:00 2001 From: etwas Date: Sat, 21 Jun 2025 19:13:20 +0200 Subject: [PATCH] refactor: move window manager configs around --- home/wm/default.nix | 3 ++- home/wm/{window-managers.nix => hyprland.nix} | 21 ----------------- home/wm/xdg.nix | 23 +++++++++++++++++++ 3 files changed, 25 insertions(+), 22 deletions(-) rename home/wm/{window-managers.nix => hyprland.nix} (94%) create mode 100644 home/wm/xdg.nix diff --git a/home/wm/default.nix b/home/wm/default.nix index 34d0d0f..7ff8e5f 100644 --- a/home/wm/default.nix +++ b/home/wm/default.nix @@ -4,10 +4,11 @@ ./catppuccin.nix ./dunst.nix ./gtk.nix + ./hyprland.nix ./hyprpaper ./rofi ./swaylock.nix ./waybar - ./window-managers.nix + ./xdg.nix ]; } diff --git a/home/wm/window-managers.nix b/home/wm/hyprland.nix similarity index 94% rename from home/wm/window-managers.nix rename to home/wm/hyprland.nix index 9d3046a..f21e572 100644 --- a/home/wm/window-managers.nix +++ b/home/wm/hyprland.nix @@ -228,25 +228,4 @@ #hyprlandPlugins.hypr-dynamic-cursors ]; }; - - xdg = { - userDirs = { - enable = true; - createDirectories = true; - }; - }; - - xdg.portal = { - enable = true; - - xdgOpenUsePortal = true; - - extraPortals = lib.mkForce [ - pkgs.xdg-desktop-portal-gtk # For both - pkgs.xdg-desktop-portal-hyprland # For Hyprland - pkgs.xdg-desktop-portal-gnome # For Gnome - ]; - - config.common.default = "*"; - }; } diff --git a/home/wm/xdg.nix b/home/wm/xdg.nix new file mode 100644 index 0000000..e2b16f5 --- /dev/null +++ b/home/wm/xdg.nix @@ -0,0 +1,23 @@ +{ lib, pkgs }: +{ + xdg = { + userDirs = { + enable = true; + createDirectories = true; + }; + }; + + xdg.portal = { + enable = true; + + xdgOpenUsePortal = true; + + extraPortals = lib.mkForce [ + pkgs.xdg-desktop-portal-gtk # For both + pkgs.xdg-desktop-portal-hyprland # For Hyprland + pkgs.xdg-desktop-portal-gnome # For Gnome + ]; + + config.common.default = "*"; + }; +}