!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

918 Members
Declaratively manage your switching, routing, wireless, tunneling and more.275 Servers

Load older messages


SenderMessageTime
20 May 2026
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonebecause avahi doesn't work on armv6 so breaks my use-case19:07:22
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI want to advertise a printer using cups with mDNS19:07:48
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonedoes it support that nssmdns feature?19:11:19
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonehmm19:40:08
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneguess not https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/printing/cupsd.nix#L47319:40:11
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonelooks 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.itmatthewcroughan - nix.zoneah okay19:41:10
@k900:0upti.meK900 That does require avahi, though I think they're working on resolved support 19:41:17
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI 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 - 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:defenestrate.itmatthewcroughan - nix.zoneTo what option?19:44:57
@k900:0upti.meK900 I don't remember the details 19:45:29
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonehttps://wiki.nixos.org/wiki/Printing#Printer_sharing suggests no service file 19:45:33
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneAh 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.networkhexacan I get the default nixos firewall rules with nft?10:11:28
@hexa:lossy.networkhexabecause 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.networkhexaI mean the default chains10:12:40
@mib:kanp.aimib 🥐then yes. fairly certain it "ships" with those.10:12:55
@hexa:lossy.networkhexaok10:13:02
@hexa:lossy.networkhexawondering where to put shared declarations10:15:44
@hexa:lossy.networkhexalike subnet definitions10:15:59
@hexa:lossy.networkhexa
Download
10:16:17
@hexa:lossy.networkhexabecause … yeah. please not per chain10:16:24
@hexa:lossy.networkhexarather per table10:16:38
@hexa:lossy.networkhexabut the template does not support that … sigh10:22:24

Show newer messages


Back to Room ListRoom Version: 6