!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

882 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` for interface and routing setup, use systemd-networkd, ifstate or NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org259 Servers

Load older messages


SenderMessageTime
20 May 2026
@k900:0upti.meK900But mostly yes19:06:52
@matthewcroughan:defenestrate.itmatthewcroughanorly19:07:11
@matthewcroughan:defenestrate.itmatthewcroughanbecause avahi doesn't work on armv6 so breaks my use-case19:07:22
@matthewcroughan:defenestrate.itmatthewcroughanI want to advertise a printer using cups with mDNS19:07:48
@matthewcroughan:defenestrate.itmatthewcroughandoes it support that nssmdns feature?19:11:19
@matthewcroughan:defenestrate.itmatthewcroughanhmm19:40:08
@matthewcroughan:defenestrate.itmatthewcroughanguess not https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/printing/cupsd.nix#L47319:40:11
@matthewcroughan:defenestrate.itmatthewcroughanlooks like our cupsd is hardcoded to avahi19:40:14
@k900:0upti.meK900cups-browsed is discovery19:40:57
@k900:0upti.meK900Not publishing19:40:59
@matthewcroughan:defenestrate.itmatthewcroughanah okay19:41:10
@k900:0upti.meK900 That does require avahi, though I think they're working on resolved support 19:41:17
@matthewcroughan:defenestrate.itmatthewcroughanI can't seem to get my printers to be advertised this way though19:44:14
@k900:0upti.meK900You need to add a service file19:44:37
@matthewcroughan:defenestrate.itmatthewcroughan

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:defenestrate.itmatthewcroughanTo what option?19:44:57
@k900:0upti.meK900 I don't remember the details 19:45:29
@matthewcroughan:defenestrate.itmatthewcroughanhttps://wiki.nixos.org/wiki/Printing#Printer_sharing suggests no service file 19:45:33
@matthewcroughan:defenestrate.itmatthewcroughanAh you mean if I'm not using avahi19:45:40
22 May 2026
@chayleaf:matrix.pavluk.orgchayleaf changed their profile picture.08:47:19
26 May 2026
@hexa:lossy.networkhexa (clat on linux when)can I get the default nixos firewall rules with nft?10:11:28
@hexa:lossy.networkhexa (clat on linux when)because toggling networking.nftable.enable will probably ship me an empty ruleset10:11:46
@mib:kanp.aimib 🥐 w.r.t. default, do you mean the ones that manage e.g. networking.firewall.allowed*Ports? 10:12:21
@hexa:lossy.networkhexa (clat on linux when)I mean the default chains10:12:40
@mib:kanp.aimib 🥐then yes. fairly certain it "ships" with those.10:12:55
@hexa:lossy.networkhexa (clat on linux when)ok10:13:02
@hexa:lossy.networkhexa (clat on linux when)wondering where to put shared declarations10:15:44
@hexa:lossy.networkhexa (clat on linux when)like subnet definitions10:15:59
@hexa:lossy.networkhexa (clat on linux when)
Download
10:16:17
@hexa:lossy.networkhexa (clat on linux when)because … yeah. please not per chain10:16:24

Show newer messages


Back to Room ListRoom Version: 6