chore: move printer configuration from Nixstation to common

This commit is contained in:
Thiago Sposito 2025-11-14 12:12:06 -03:00
parent 04fece3480
commit d4a231e309
Signed by: thiago
GPG key ID: 3065EA73A976D430
2 changed files with 30 additions and 1 deletions

View file

@ -14,7 +14,12 @@
(final: prev: {
libnitrokey = prev.libnitrokey.overrideAttrs (old: {
cmakeFlags = (old.cmakeFlags or [ ]) ++ [
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
];
});
epsonscan2 = prev.epsonscan2.overrideAttrs (old: {
cmakeFlags = (old.cmakeFlags or [ ]) ++ [
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
];
});
})
@ -28,10 +33,13 @@
}) config.nix.registry;
systemPackages = with pkgs; [
ccid
epson-escpr
epsonscan2
exfat
file
fuse3
gcsfuse
ghostscript
git
gnupg
hidapi
@ -88,6 +96,11 @@
zsh.enable = true;
};
services = {
printing = {
enable = true;
drivers = [ pkgs.epson-escpr ];
};
pcscd.enable = true;
# xserver.displayManager.sessionCommands =
# "${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 64 = Alt_L'";
@ -97,6 +110,21 @@
pkgs.nitrokey-udev-rules
];
};
# hardware = {
# printers = {
# ensurePrinters = [
# {
# name = "Epson_L3150";
# location = "HomeOffice";
# deviceUri = "usb://EPSON/L3150%20Series?serial=583545563539353524&interface=1";
# model = "${pkgs.epson-escpr}/share/cups/model/epson-inkjet-printer-escpr/Epson-L3150_Series-epson-escpr-en.ppd";
# ppdOptions = { PageSize = "A4"; };
# }
# ];
# ensureDefaultPrinter = "Epson_L3150";
# };
# };
users.groups.scard = { };
time.timeZone = "America/Sao_Paulo";