2021-05-30 19:10:28 +00:00
|
|
|
{
|
2023-10-07 12:06:28 +00:00
|
|
|
flake,
|
2021-05-30 19:10:28 +00:00
|
|
|
config,
|
|
|
|
pkgs,
|
2023-10-07 12:06:28 +00:00
|
|
|
lib,
|
2021-05-30 19:10:28 +00:00
|
|
|
...
|
2023-10-07 12:06:28 +00:00
|
|
|
}: {
|
2023-10-09 08:43:53 +00:00
|
|
|
services.avahi.enable = true;
|
|
|
|
services.avahi.ipv6 = true;
|
2024-06-02 21:47:00 +00:00
|
|
|
services.avahi.nssmdns4 = true;
|
2023-10-07 12:06:28 +00:00
|
|
|
services.avahi.publish.enable = true;
|
|
|
|
services.avahi.publish.userServices = true;
|
|
|
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
services.printing.browsing = true;
|
|
|
|
services.printing.listenAddresses = ["localhost:631"];
|
2023-10-10 11:37:17 +00:00
|
|
|
services.printing.defaultShared = lib.mkDefault false;
|
|
|
|
|
2024-08-18 22:22:59 +00:00
|
|
|
services.printing.drivers =
|
|
|
|
[
|
|
|
|
pkgs.gutenprint
|
|
|
|
]
|
|
|
|
++ (
|
|
|
|
if (pkgs.system == "x86_64-linux")
|
|
|
|
then [pkgs.cups-brother-hl3140cw]
|
|
|
|
else []
|
|
|
|
);
|
2024-07-01 16:38:28 +00:00
|
|
|
|
2024-08-16 19:33:49 +00:00
|
|
|
# environment.persistence."/persist" = {
|
|
|
|
# directories = [
|
|
|
|
# "/etc/lib/cups"
|
|
|
|
# ];
|
|
|
|
# };
|
2021-05-30 19:10:28 +00:00
|
|
|
}
|