37 lines
889 B
Nix
37 lines
889 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
services = {
|
|
printing = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
drivers = with pkgs; [
|
|
epson-escpr # Greece, Athens, Home
|
|
];
|
|
};
|
|
|
|
avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
ipv6 = true;
|
|
nssmdns6 = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
|
|
environment.persistence."/persist/state" = {
|
|
"/var/lib/cups/ppd" = { };
|
|
"/var/lib/cups/printers.conf" = { };
|
|
};
|
|
|
|
systemd = {
|
|
services.cups.after = [
|
|
config.environment.persistence."/persist/state"."/var/lib/cups/ppd".mount
|
|
config.environment.persistence."/persist/state"."/var/lib/cups/printers.conf".mount
|
|
];
|
|
sockets.cups.after = [
|
|
config.environment.persistence."/persist/state"."/var/lib/cups/ppd".mount
|
|
config.environment.persistence."/persist/state"."/var/lib/cups/printers.conf".mount
|
|
];
|
|
};
|
|
}
|