chore: move printer configuration from Nixstation to common
This commit is contained in:
parent
04fece3480
commit
d4a231e309
2 changed files with 30 additions and 1 deletions
|
|
@ -21,6 +21,7 @@
|
|||
act
|
||||
btrfs-progs
|
||||
cudatoolkit
|
||||
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@
|
|||
"-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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue