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
|
act
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
cudatoolkit
|
cudatoolkit
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,11 @@
|
||||||
"-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;
|
}) config.nix.registry;
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
ccid
|
ccid
|
||||||
|
epson-escpr
|
||||||
|
epsonscan2
|
||||||
exfat
|
exfat
|
||||||
file
|
file
|
||||||
fuse3
|
fuse3
|
||||||
gcsfuse
|
gcsfuse
|
||||||
|
ghostscript
|
||||||
git
|
git
|
||||||
gnupg
|
gnupg
|
||||||
hidapi
|
hidapi
|
||||||
|
|
@ -88,6 +96,11 @@
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
|
printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = [ pkgs.epson-escpr ];
|
||||||
|
};
|
||||||
|
|
||||||
pcscd.enable = true;
|
pcscd.enable = true;
|
||||||
# xserver.displayManager.sessionCommands =
|
# xserver.displayManager.sessionCommands =
|
||||||
# "${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 64 = Alt_L'";
|
# "${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 64 = Alt_L'";
|
||||||
|
|
@ -97,6 +110,21 @@
|
||||||
pkgs.nitrokey-udev-rules
|
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 = { };
|
users.groups.scard = { };
|
||||||
|
|
||||||
time.timeZone = "America/Sao_Paulo";
|
time.timeZone = "America/Sao_Paulo";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue