From b84aceaabad13ed019d83ee08a1a14a639a75d3f Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Tue, 22 Feb 2022 04:54:51 -0500 Subject: [PATCH] Printing take 2 --- flake.nix | 1 + modules/printing.nix | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 9699c62..5aa9d9d 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,7 @@ ./modules/logitech.nix ./modules/qemu.nix ./modules/docker.nix + ./modules/printing.nix ./applications/communications.nix ./applications/devel-core.nix ./applications/devel-rust.nix diff --git a/modules/printing.nix b/modules/printing.nix index 45b8f73..0479dd6 100644 --- a/modules/printing.nix +++ b/modules/printing.nix @@ -1,16 +1,18 @@ { config, pkgs, unstable, ... }: { - imports = [ "$unstable/nixos/modules/services/printing/cupsd.nix" ]; - disabledModules = [ "services/printing/cupsd.nix" ]; + nixpkgs.config.packageOverrides = pkgs: { + canon-cups-ufr2 = unstable.canon-cups-ufr2; + }; + services.printing = { enable = true; drivers = [ - # My printer requires at least v5 to run, 21.11 has 3.70 - unstable.canon-cups-ufr2 + pkgs.canon-cups-ufr2 ]; }; - environment.systemPackages = [ - unstable.canon-cups-ufr2 + environment.systemPackages = with pkgs; [ + canon-cups-ufr2 + cups ]; }