From 6a7713449fa8016f62eeb5dc8bd66223bd743e4a Mon Sep 17 00:00:00 2001 From: Justin Humm Date: Tue, 28 Apr 2020 22:28:46 +0200 Subject: [PATCH] nixos/printers: fix example for hardware.printers.ensurePrinters.*.model It's `lib.versions`, not `lib.version`. Also I'm really sure that it's supposed to be the current version of Gutenprint, not Cups, as thats what `lpinfo -m` says on my system. --- nixos/modules/hardware/printers.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/hardware/printers.nix b/nixos/modules/hardware/printers.nix index 56b91933477..752de41f26d 100644 --- a/nixos/modules/hardware/printers.nix +++ b/nixos/modules/hardware/printers.nix @@ -84,7 +84,7 @@ in { model = mkOption { type = types.str; example = literalExample '' - gutenprint.''${lib.version.majorMinor (lib.getVersion pkgs.cups)}://brother-hl-5140/expert + gutenprint.''${lib.versions.majorMinor (lib.getVersion pkgs.gutenprint)}://brother-hl-5140/expert ''; description = '' Location of the ppd driver file for the printer.