From 5fd05c965817f007c2923a0a43ba9cfc00b3cd39 Mon Sep 17 00:00:00 2001 From: tinger Date: Mon, 17 Aug 2026 08:14:47 +0200 Subject: [PATCH] common: desktop: Set default PDF applications --- common/desktop.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/desktop.nix b/common/desktop.nix index 9f36efd..e4c3486 100644 --- a/common/desktop.nix +++ b/common/desktop.nix @@ -31,8 +31,15 @@ in services.gnome.gnome-keyring.enable = true; security.pam.services.sddm.enableGnomeKeyring = true; - # Common + # Set the PDF viewers to open PDFs. + xdg.mime.defaultApplications = { + "application/pdf" = [ + "sioyek.desktop" + "zathura.desktop" + ]; + }; + # Common packages. environment.systemPackages = with pkgs; [ awww # Wayland desktop background daemon with animations bemenu # Program launcher -- 2.51.2