xdg fixes
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.hyprland.nixosModules.default
|
||||
];
|
||||
environment.variables.NIXOS_OZONE_WL = "1";
|
||||
programs.hyprland.enable = true;
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config.common.default = lib.mkForce ["hyprland" "kde"];
|
||||
extraPortals = [pkgs.xdg-desktop-portal-kde];
|
||||
};
|
||||
}
|
||||
|
||||
14
nixos/core/xdg.nix
Normal file
14
nixos/core/xdg.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{pkgs, ...}: {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
config = {
|
||||
common.default = ["gtk"];
|
||||
hyprland.default = ["gtk" "hyprland"];
|
||||
};
|
||||
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user