We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bd9ade commit 08a61d7Copy full SHA for 08a61d7
modules/config/xdg.nix
@@ -4,6 +4,7 @@
4
pkgs,
5
config,
6
host,
7
+ lib,
8
...
9
}:
10
module-functions.module null "xdg" {
@@ -19,6 +20,19 @@ module-functions.module null "xdg" {
19
20
xdg-desktop-portal-hyprland);
21
};
22
23
+ mimeApps = {
24
+ enable = true;
25
+ defaultApplications = let
26
+ video = lib.mkIf config.yunfachi.programs.totem.enable ["org.gnome.Totem.desktop"];
27
+ image = lib.mkIf config.yunfachi.programs.loupe.enable ["org.gnome.Loupe.desktop"];
28
+ in {
29
+ "audio/*" = video;
30
+ "audio/mpeg" = video;
31
+ "video/*" = video;
32
+ "image/*" = image;
33
+ };
34
35
+
36
userDirs = let
37
download = "${config.hm.home.homeDirectory}/download";
38
media = category: "${config.hm.home.homeDirectory}/media/${category}";
0 commit comments