Anthony Rodriguez
ec285bcc52
Here, we also use the option we just added, `local.modules.hyprland.enable` to toggle Hyprland, as well as the profiles. Also removed other unused configuration, such as KDE/Gnome.
21 lines
358 B
Nix
21 lines
358 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.local.profiles.desktop.enable {
|
|
xdg.portal = {
|
|
enable = true;
|
|
xdgOpenUsePortal = true;
|
|
config = {
|
|
common.default = ["gtk"];
|
|
hyprland.default = ["gtk" "hyprland"];
|
|
};
|
|
|
|
extraPortals = [
|
|
pkgs.xdg-desktop-portal-gtk
|
|
];
|
|
};
|
|
};
|
|
}
|