mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 07:25:30 +00:00
Cleaned up documentation and other performed other code cleanups
This commit is contained in:
parent
5b616f7907
commit
c3c720f4a2
13 changed files with 343 additions and 213 deletions
|
|
@ -9,8 +9,8 @@
|
|||
# The viewer template
|
||||
template = import ./viewerTemplate.nix;
|
||||
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) package str listOf;
|
||||
inherit (lib.options) mkOption mkEnableOption mkPackageOption;
|
||||
inherit (lib.types) str listOf;
|
||||
in (
|
||||
template {
|
||||
inherit name moduleInheritancePackage;
|
||||
|
|
@ -18,11 +18,7 @@ in (
|
|||
options = {
|
||||
enable = mkEnableOption "enable okular as the pdf file previewer.";
|
||||
|
||||
package = mkOption {
|
||||
type = package;
|
||||
default = pkgs.okular;
|
||||
description = "okular package";
|
||||
};
|
||||
package = mkPackageOption pkgs "okular" {};
|
||||
|
||||
executable = mkOption {
|
||||
type = str;
|
||||
|
|
@ -32,7 +28,10 @@ in (
|
|||
|
||||
args = mkOption {
|
||||
type = listOf str;
|
||||
default = ["--unique" "file:%p#src:%l%f"];
|
||||
default = [
|
||||
"--unique"
|
||||
"file:%p#src:%l%f"
|
||||
];
|
||||
description = "Arguments to pass to the viewer.";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue