Add printing & EPFL CUPS drivers

This commit is contained in:
Natsu Kagami 2023-03-01 16:58:01 +01:00
parent 583ed20387
commit 7b47d07932
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
6 changed files with 8462 additions and 0 deletions

View file

@ -50,6 +50,10 @@
}; };
services.logind.lidSwitch = "suspend"; services.logind.lidSwitch = "suspend";
# Printing
services.printing.enable = true;
services.printing.drivers = with pkgs;[ epfl-cups-drivers ];
networking.hostName = "kagami-air-m1"; # Define your hostname. networking.hostName = "kagami-air-m1"; # Define your hostname.
# networking.hostName = "nixos"; # Define your hostname. # networking.hostName = "nixos"; # Define your hostname.

View file

@ -62,6 +62,8 @@ in
overlay-aarch64-linux overlay-aarch64-linux
nur.overlay nur.overlay
(import ./packages/common)
# Bug fixes # Bug fixes
] # we assign the overlay created before to the overlays of nixpkgs. ] # we assign the overlay created before to the overlays of nixpkgs.

View file

@ -0,0 +1,3 @@
final: prev: {
epfl-cups-drivers = final.callPackage ./epfl-cups-drivers { };
}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,6 @@
{ pkgs, runCommand, ... }: runCommand "epfl-cups-drivers" { } ''
mkdir -p $out/share/cups/model
cp ${./PPD-C5860-bw-EN.PPD} $out/share/cups/model
cp ${./PPD-C5860-color-EN.PPD} $out/share/cups/model
''