This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
27
modules/home/hyprland/xdg/default.nix
Normal file
27
modules/home/hyprland/xdg/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.wayland.windowManager.hyprland;
|
||||
portal = pkgs.xdg-desktop-portal-hyprland;
|
||||
|
||||
inherit (lib) mkDefault mkIf;
|
||||
in
|
||||
{
|
||||
config.xdg = mkIf cfg.enable {
|
||||
enable = mkDefault true;
|
||||
mime.enable = mkDefault true;
|
||||
mimeApps.enable = mkDefault true;
|
||||
userDirs = {
|
||||
enable = mkDefault true;
|
||||
createDirectories = mkDefault true;
|
||||
};
|
||||
portal.enable = mkDefault true;
|
||||
portal.extraPortals = [ portal ];
|
||||
portal.configPackages = [ portal ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue