mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 15:35: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,10 +18,8 @@ in (
|
|||
options = {
|
||||
enable = mkEnableOption "enable using a custom pdf viewer.";
|
||||
|
||||
package = mkOption {
|
||||
type = package;
|
||||
example = pkgs.okular;
|
||||
description = "custom viewer package";
|
||||
package = mkPackageOption pkgs "okular" {
|
||||
extraDescription = "custom viewer package";
|
||||
};
|
||||
|
||||
executable = mkOption {
|
||||
|
|
@ -32,7 +30,10 @@ in (
|
|||
|
||||
args = mkOption {
|
||||
type = listOf str;
|
||||
example = ["--unique" "file:%p#src:%l%f"];
|
||||
example = [
|
||||
"--unique"
|
||||
"file:%p#src:%l%f"
|
||||
];
|
||||
description = "Arguments to pass to the viewer.";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue