Commit ba3f138

HPCesia <me@hpcesia.com>
2025-12-04 12:53:29
feat: use atril instead of okular
1 parent 50fbcb0
Changed files (3)
modules
desktop
apps
desktop-environment
discrete
modules/desktop/apps/okular.nix
@@ -1,10 +0,0 @@
-{
-  flake.modules.homeManager.desktop = {pkgs, ...}: {
-    home.packages = [pkgs.kdePackages.okular];
-
-    xdg.mimeApps.defaultApplications = {
-      "application/pdf" = ["okularApplication_pdf.desktop"];
-      "application/epub+zip" = ["okularApplication_epub.desktop"];
-    };
-  };
-}
modules/desktop/apps/packages.nix
@@ -35,6 +35,7 @@
       ])
       ++ (lib.optionals pkgs.stdenv.hostPlatform.isLinux (with pkgs; [
         cherry-studio # No darwin package in Nixpkgs
+        mate.atril
         gimp3
         kdePackages.kdenlive
         libreoffice-qt6
@@ -42,5 +43,10 @@
         readest
         veracrypt
       ]));
+
+    xdg.mimeApps.defaultApplications = {
+      "application/pdf" = ["org.mate.atril.desktop"];
+      "application/epub+zip" = ["readest.desktop"];
+    };
   };
 }
modules/desktop/desktop-environment/discrete/wm/niri/window-rules.nix
@@ -78,6 +78,7 @@
         matches = [
           {app-id = "readest";}
           {app-id = "org.kde.okular";}
+          {app-id = "atril";}
         ];
         open-on-workspace = "5read";
       }