Files
nixos-config/home/common/features/xdg.nix
T
Miguel Palhas afd9646189
CI / lint (push) Successful in 1m8s
CI / eval (push) Failing after 2m24s
zen: switch from twilight nightly to stable channel
twilight re-publishes under the same 1.22t tag, so the pinned hash goes
stale and `nh home switch` fails with a fixed-output hash mismatch. Move
to the stable `default` package (branded zen-beta, 1.21.5b), which uses
proper versioned releases.

- zen-browser.nix: twilight-official -> default
- xdg.nix: zen-twilight.desktop -> zen-beta.desktop mimeapp defaults
- flake.lock: bump zen-browser input

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 09:38:31 +01:00

59 lines
1.6 KiB
Nix

_:
{
xdg = {
userDirs = {
enable = true;
createDirectories = false;
# Keep exporting XDG_*_DIR as session variables (new default is false).
setSessionVariables = true;
desktop = null;
documents = null;
download = "downloads";
music = null;
pictures = null;
publicShare = null;
templates = null;
videos = null;
};
mimeApps = {
enable = true;
defaultApplications = {
# web
"text/html" = "zen-beta.desktop";
"x-scheme-handler/http" = "zen-beta.desktop";
"x-scheme-handler/https" = "zen-beta.desktop";
"x-scheme-handler/avbout" = "zen-beta.desktop";
"x-scheme-handler/unknown" = "zen-beta.desktop";
# video
"video/mp4" = "mpv.desktop";
"video/webm" = "mpv.desktop";
"video/x-flv" = "mpv.desktop";
"video/x-matroska" = "mpv.desktop";
"video/x-ms-wmv" = "mpv.desktop";
# images
"image/jpeg" = "imv.desktop";
"image/png" = "imv.desktop";
# pdfs
"application/pdf" = "org.pwmt.zathura.desktop";
"application/fdf" = "org.pwmt.zathura.desktop";
"application/pdx" = "org.pwmt.zathura.desktop";
"application/x-pdf" = "org.pwmt.zathura.desktop";
"application/xfdf" = "org.pwmt.zathura.desktop";
# files
"inode/directory" = "thunar.desktop";
# 3d printing
"model/3mf" = "PrusaSlicer.desktop";
"application/x-3mf" = "PrusaSlicer.desktop";
"model/stl" = "PrusaSlicer.desktop";
"application/sla" = "PrusaSlicer.desktop";
};
};
};
}