zathura.nix (1128B)
1 { config, pkgs, lib, ... }: 2 3 with lib; 4 5 { 6 options.zathura = { 7 enable = mkEnableOption "Zathura"; 8 9 colours = { 10 bg = mkOption { 11 type = types.str; 12 default = "#000000"; 13 example = "#123456"; 14 description = "Background colour"; 15 }; 16 bg2 = mkOption { 17 type = types.str; 18 default = "#000000"; 19 example = "#123456"; 20 description = "Alternative background colour"; 21 }; 22 fg = mkOption { 23 type = types.str; 24 default = "#ffffff"; 25 example = "#123456"; 26 description = "Foreground colour"; 27 }; 28 }; 29 }; 30 31 config = mkIf config.zathura.enable { 32 programs.zathura = { 33 enable = true; 34 35 options = { 36 selection-clipboard = "clipboard"; 37 recolor = "true"; 38 39 statusbar-bg = config.zathura.colours.bg2; 40 statusbar-fg = config.zathura.colours.fg; 41 42 default-bg = config.zathura.colours.bg; 43 recolor-lightcolor = config.zathura.colours.bg; 44 45 default-fg = config.zathura.colours.fg; 46 recolor-darkcolor = config.zathura.colours.fg; 47 }; 48 }; 49 }; 50 }