nix/host/x86_64-linux/home/Cups.nix

23 lines
550 B
Nix
Raw Normal View History

2024-12-02 21:12:45 +03:00
# NOTE: Login to contaier, run passwd and use that root/pw combo for administration. `AllowFrom = all` doesn't seem to work.
# ipp://10.0.0.10
# Pantum M6500W-Series
{
__findFile,
pkgs,
...
} @args: let
package = pkgs.callPackage <package/print> args;
in {
services.printing = {
enable = true;
allowFrom = [ "all" ];
browsing = true;
defaultShared = true;
drivers = [ package ];
listenAddresses = [ "0.0.0.0:631" ];
startWhenNeeded = true;
stateless = false;
webInterface = true;
};
}