I struggled to launch a print job from NixOS on My Canon Pixma TS5050.
The solution is actually very simple (credit to this post).
You just need to add this to you configuration.nix
:
{config, pkgs, ... }:
{
# ...
services.printing = {
enable = true;
drivers = [ pkgs.cnijfilter2 ];
};
# ...
}
and then rebuild your system with :
sudo nixos-rebuild switch
And that’s it !
Environnement
- Nix 2.18.8
- NixOS 24.05
- Canon Pixma TS5050