| 20 May 2026 |
matthewcroughan - nix.zone | because avahi doesn't work on armv6 so breaks my use-case | 19:07:22 |
matthewcroughan - nix.zone | I want to advertise a printer using cups with mDNS | 19:07:48 |
matthewcroughan - nix.zone | does it support that nssmdns feature? | 19:11:19 |
matthewcroughan - nix.zone | hmm | 19:40:08 |
matthewcroughan - nix.zone | guess not https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/printing/cupsd.nix#L473 | 19:40:11 |
matthewcroughan - nix.zone | looks like our cupsd is hardcoded to avahi | 19:40:14 |
K900 | cups-browsed is discovery | 19:40:57 |
K900 | Not publishing | 19:40:59 |
matthewcroughan - nix.zone | ah okay | 19:41:10 |
K900 | That does require avahi, though I think they're working on resolved support | 19:41:17 |
matthewcroughan - nix.zone | I can't seem to get my printers to be advertised this way though | 19:44:14 |
K900 | You need to add a service file | 19:44:37 |
matthewcroughan - nix.zone | so I have a pi zero, running cups like this
services.ipp-usb.enable = true;
services.avahi.enable = pkgs.lib.mkForce false;
services.printing = {
enable = true;
listenAddresses = [ "*:631" ];
allowFrom = [ "all" ];
browsing = true;
stateless = true;
defaultShared = true;
openFirewall = true;
drivers = [
x86Pkgs.gutenprint
(import (builtins.getFlake "github:matthewcroughan/nixpkgs/3899aabdacb26c465fecd5e799448ea319341890") { system = "i686-linux"; config.allowUnfree = true; }).cnijfilter_4_00
];
extraConf = ''
ServerAlias *
DefaultEncryption Never
DefaultAuthType Basic
WebInterface Yes
<Location />
Order allow,deny
Allow all
Encryption Never
</Location>
<Location /admin>
Order allow,deny
Allow all
Encryption Never
</Location>
'';
};
| 19:44:42 |
matthewcroughan - nix.zone | To what option? | 19:44:57 |
K900 | I don't remember the details | 19:45:29 |
matthewcroughan - nix.zone | https://wiki.nixos.org/wiki/Printing#Printer_sharing suggests no service file | 19:45:33 |
matthewcroughan - nix.zone | Ah you mean if I'm not using avahi | 19:45:40 |
| 22 May 2026 |
| chayleaf changed their profile picture. | 08:47:19 |
| 26 May 2026 |
hexa | can I get the default nixos firewall rules with nft? | 10:11:28 |
hexa | because toggling networking.nftable.enable will probably ship me an empty ruleset | 10:11:46 |
mib 🥐 | w.r.t. default, do you mean the ones that manage e.g. networking.firewall.allowed*Ports? | 10:12:21 |
hexa | I mean the default chains | 10:12:40 |
mib 🥐 | then yes. fairly certain it "ships" with those. | 10:12:55 |
hexa | ok | 10:13:02 |
hexa | wondering where to put shared declarations | 10:15:44 |
hexa | like subnet definitions | 10:15:59 |
hexa |  Download | 10:16:17 |
hexa | because … yeah. please not per chain | 10:16:24 |
hexa | rather per table | 10:16:38 |
hexa | but the template does not support that … sigh | 10:22:24 |