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

View file

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