mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 00:13:55 -05:00
defaultapps: pdfEditor -> pdfViewer
This commit is contained in:
parent
d099bc6ba0
commit
c3a317253e
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue