diff options
author | Samuel Gräfenstein <git@samuelgrf.com> | 2021-03-14 11:59:00 +0100 |
---|---|---|
committer | Samuel Gräfenstein <git@samuelgrf.com> | 2021-03-14 11:59:00 +0100 |
commit | 87f4d7a07a076e4c879c213da3df7cfa62630cdc (patch) | |
tree | 99404501728ff6c43574149f1791148796e00567 /nixos/modules | |
parent | 7fcc4a8a84d6a6a1b07c0e375d55e991749e786d (diff) |
nixos/printing: simplify filterGutenprint function
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/printing/cupsd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix index b19cd07325266..d2b36d9e75415 100644 --- a/nixos/modules/services/printing/cupsd.nix +++ b/nixos/modules/services/printing/cupsd.nix @@ -104,7 +104,7 @@ let ignoreCollisions = true; }; - filterGutenprint = pkgs: filter (pkg: pkg.meta.isGutenprint or false == true) pkgs; + filterGutenprint = filter (pkg: pkg.meta.isGutenprint or false == true); containsGutenprint = pkgs: length (filterGutenprint pkgs) > 0; getGutenprint = pkgs: head (filterGutenprint pkgs); |