defaultapps: pdfEditor -> pdfViewer

This commit is contained in:
Aly Raffauf 2024-06-21 23:23:03 -04:00
parent d099bc6ba0
commit c3a317253e
2 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@
editor.package
fileManager.package
imageViewer.package
pdfEditor.package
pdfViewer.package
terminal.package
terminalEditor.package
videoPlayer.package
@ -28,7 +28,7 @@
xdg.mimeApps = {
enable = true;
defaultApplications = {
"application/pdf" = config.alyraffauf.defaultApps.pdfEditor.desktop;
"application/pdf" = config.alyraffauf.defaultApps.pdfViewer.desktop;
"application/x-shellscript" = config.alyraffauf.defaultApps.editor.desktop;
"application/xhtml+xml" = config.alyraffauf.defaultApps.webBrowser.desktop;
"audio/flac" = config.alyraffauf.defaultApps.audioPlayer.desktop;

View file

@ -118,19 +118,19 @@
type = lib.types.package;
};
};
pdfEditor = {
pdfViewer = {
exe = lib.mkOption {
description = "Default PDF editor executable.";
description = "Default PDF viewer executable.";
default = lib.getExe config.alyraffauf.defaultApps.pdfEditor.package;
type = lib.types.str;
};
desktop = lib.mkOption {
description = "Default PDF Editor desktop file.";
description = "Default PDF viewer desktop file.";
default = "org.gnome.Evince.desktop";
type = lib.types.str;
};
package = lib.mkOption {
description = "Default PDF Editor package.";
description = "Default PDF viewer package.";
default = pkgs.evince;
type = lib.types.package;
};