.dotfiles/profiles/common/nixos/networkdevices.nix
Swarsel 5acbfe0edd
refactor: split common/nixos.nix and -/home.nix
Split these big files into modular files that
are easier to share and read on their own.
2024-07-23 11:37:11 +02:00

30 lines
606 B
Nix

{ pkgs, ... }:
{
# enable scanners over network
hardware.sane = {
enable = true;
extraBackends = [ pkgs.sane-airscan ];
};
# enable discovery and usage of network devices (esp. printers)
services.printing = {
enable = true;
drivers = [
pkgs.gutenprint
pkgs.gutenprintBin
];
browsedConf = ''
BrowseDNSSDSubTypes _cups,_print
BrowseLocalProtocols all
BrowseRemoteProtocols all
CreateIPPPrinterQueues All
BrowseProtocols all
'';
};
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
}