Printing: Difference between revisions

Nipsy (talk | contribs)
Add info about smb protocol
Line 82: Line 82:
};
};
</syntaxhighlight>
</syntaxhighlight>
To add a printer over the smb protocol, [[Samba]] needs to be enabled:<syntaxhighlight lang="nix">
hardware.printers.ensurePrinters = [{
    # (other stuff...)
    deviceUri = "smb://print-server.com/somepriner";
    # If auth is required. Literary the string "username,password". DO NOT provide the actual username and password here!
    auth-info-required = "username,password";
  }];
services.samba.enable = true;
</syntaxhighlight>


Some local or network printers might need additional drivers. You can add them using the <code>drivers</code> option
Some local or network printers might need additional drivers. You can add them using the <code>drivers</code> option