| 20 May 2026 |
K900 | That does require avahi, though I think they're working on resolved support | 19:41:17 |
matthewcroughan | 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 | 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 | To what option? | 19:44:57 |
K900 | I don't remember the details | 19:45:29 |
matthewcroughan | https://wiki.nixos.org/wiki/Printing#Printer_sharing suggests no service file | 19:45:33 |
matthewcroughan | 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 |
hexa | am I rolling my own again? | 10:23:20 |
hexa | spoilers | 10:32:48 |
hexa | no I am not | 10:32:49 |
hexa | https://github.com/NixOS/nixpkgs/pull/524405 | 10:33:23 |
hexa | anywho wants to speed-run a review? | 10:34:27 |
hexa | I'm also willing to bikeshed the option name, if anyone here is into that | 10:39:35 |
hexa | Redacted or Malformed Event | 10:39:48 |
hexa | huh, in nixos/infra we use | 10:45:25 |
hexa | tables."nixos-fw".content = lib.mkBefore ''
| 10:45:27 |