1
NixOS printing problems (sh.itjust.works)

cross-posted from: https://sh.itjust.works/post/40081431

A friend and I are trying to get a machine set up to work as my school's library's printing computer instead of Windows ones. It is running NixOS. We got it bound to active directory, applications installed, etc., but the issue is that we can't get it to print. It'll say that it's printing but the print job never reaches the print server. To access the print server you're supposed to authenticate, but it doesn't ever give a prompt to. I tried turning off the firewall temporarily to see if that was the issue but it made no difference.

In configuration.nix, services.printing.enable=true and services.printing.drivers = [ pkgs.cups pkgs.hplip ]; (it is an HP printer that we're currently testing on).

I'm thinking that either SAMBA is configured incorrectly and/or the syntax that I put into CUPS for the printer is incorrect.

Current SAMBA config:

services.samba = { enable = true; openfirewall = true; settings = { public = { path = "/srv/public"; browseable = true; writable = true; "guest ok" = true;

In CUPS it shows the syntax for a Windows printer via SAMBA as follows: smb://[workgroup/]server[:port}/printer

The issue is that I don't know what it means by that. I know the print queue, domain, IP, and port (although I'm under the impression that I don't need the port for this case), but I don't know how it would fit into this. I tried looking around on the CUPS wiki but it was vague and confusing to me. Any help with this is much appreciated.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 15 Jun 2025
1 points (100.0% liked)

Linux

11224 readers
40 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS