mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: lisps, hyprland changes, god knows what else
This commit is contained in:
parent
35072f0885
commit
6f044a8349
30 changed files with 673 additions and 202 deletions
29
home/environments/hyprland/xdg.nix
Normal file
29
home/environments/hyprland/xdg.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, pkgs, ... }: let
|
||||
inherit (lib.generators) toINI;
|
||||
in {
|
||||
xdg = {
|
||||
enable = true;
|
||||
autostart.enable = true;
|
||||
mime.enable = true;
|
||||
portal = {
|
||||
xdgOpenUsePortal = true;
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gnome
|
||||
xdg-desktop-portal-gtk
|
||||
kdePackages.xdg-desktop-portal-kde
|
||||
];
|
||||
};
|
||||
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
xdg.configFile."xdg-desktop-portal/hyprland-portals.conf".text = toINI {} {
|
||||
preferred = {
|
||||
default = "hyprland;gtk";
|
||||
"org.freedesktop.impl.portal.FileChooser" = "kde";
|
||||
"org.freedesktop.impl.portal.AppChooser" = "kde";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue