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