nixos-config/config/services/cups.nix

29 lines
513 B
Nix
Raw Normal View History

2023-03-10 16:22:39 +01:00
{
pkgs,
nixpkgs,
...
}: {
2022-05-25 09:36:03 +01:00
services.printing = {
enable = true;
drivers = with pkgs; [
brlaser
];
browsing = true;
2022-06-12 16:39:15 +01:00
listenAddresses = ["*:631"];
allowFrom = ["all"];
2022-05-25 09:36:03 +01:00
defaultShared = true;
2022-05-25 12:36:37 +01:00
extraConf = ''
ServerAlias *
'';
2022-05-25 09:36:03 +01:00
};
services.avahi = {
enable = true;
publish.enable = true;
publish.userServices = true;
};
2023-03-10 16:22:39 +01:00
2023-11-04 18:38:38 +01:00
#imports = ["${nixpkgs}/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix"];
2023-03-10 16:22:39 +01:00
hardware.sane.enable = true;
2022-05-25 09:36:03 +01:00
}