refactor: move window manager configs around

This commit is contained in:
etwas 2025-06-21 19:13:20 +02:00
parent e55e3a55b0
commit 227b2b1f67
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0
3 changed files with 25 additions and 22 deletions

View file

@ -4,10 +4,11 @@
./catppuccin.nix
./dunst.nix
./gtk.nix
./hyprland.nix
./hyprpaper
./rofi
./swaylock.nix
./waybar
./window-managers.nix
./xdg.nix
];
}

View file

@ -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 = "*";
};
}

23
home/wm/xdg.nix Normal file
View file

@ -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 = "*";
};
}