43 lines
1.4 KiB
Nix
43 lines
1.4 KiB
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
osConfig,
|
||
|
...
|
||
|
}: {
|
||
|
config = lib.mkIf osConfig.local.profiles.desktop.enable {
|
||
|
xdg = {
|
||
|
enable = true;
|
||
|
cacheHome = config.home.homeDirectory + "/.local/cache";
|
||
|
|
||
|
mimeApps = {
|
||
|
enable = true;
|
||
|
defaultApplications = {
|
||
|
"default-web-browser" = ["firefox.desktop"];
|
||
|
"text/html" = ["firefox.desktop"];
|
||
|
"x-scheme-handler/http" = ["firefox.desktop"];
|
||
|
"x-scheme-handler/https" = ["firefox.desktop"];
|
||
|
"x-scheme-handler/about" = ["firefox.desktop"];
|
||
|
"x-scheme-handler/unknown" = ["firefox.desktop"];
|
||
|
"x-scheme-handler/chrome" = ["chromium-browser.desktop"];
|
||
|
"inode/directory" = ["yazi.desktop"];
|
||
|
"application/pdf" = ["org.pwmt.zathura-pdf-mupdf.desktop"];
|
||
|
"image/png" = ["org.gnome.gThumb.desktop"];
|
||
|
"image/svg" = [" org.gnome.gThumb.desktop"];
|
||
|
"image/jpeg" = ["org.gnome.gThumb.desktop"];
|
||
|
"image/gif" = [" org.gnome.gThumb.desktop"];
|
||
|
"video/mp4" = ["io.github.celluloid_player.Celluloid.desktop"];
|
||
|
"video/avi" = ["io.github.celluloid_player.Celluloid.desktop"];
|
||
|
"video/mkv" = ["io.github.celluloid_player.Celluloid.desktop"];
|
||
|
};
|
||
|
};
|
||
|
userDirs = {
|
||
|
enable = true;
|
||
|
createDirectories = true;
|
||
|
extraConfig = {
|
||
|
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|