!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

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

Load older messages


SenderMessageTime
12 Sep 2025
@jassu:kumma.juttu.asiaJassukoI would actually like mdns if it didn't have all those weird quirks on the implementations. -_-14:26:07
@toonn:matrix.orgtoonn It kinda feels like it was intentionally hamstrung to make it perpetually unpopular. 14:27:46
@magic_rb:matrix.redalder.orgmagic_rbIt does, going from a strict to lazy bytestring always incurs a copy unless the lazy bytestring is only one chunk i think. Then it may be able to do the conversion in place14:33:20
@toonn:matrix.orgtoonn magic_rb: I was thinking more that it might be read chunk by chunk, converted to the next however many Word8s and the same thing when packing, with fusion eliminating the intermediate list. 14:34:55
@toonn:matrix.orgtoonn magic_rb: Also very possible I just didn't notice toStrict though. 14:35:08
@magic_rb:matrix.redalder.orgmagic_rbhttps://hackage-content.haskell.org/package/bytestring-0.12.2.0/docs/src/Data.ByteString.Lazy.Internal.html#local-6989586621679118241 reading the impl here, it has a optimization for "just one chunk"14:36:13
@magic_rb:matrix.redalder.orgmagic_rb In that narrow case it should be O(1) and since you deal with up to 64 bytes, it should always be O(1) 14:38:30
@magic_rb:matrix.redalder.orgmagic_rbYeah the default chunk size is 32k - memory management overhead so your DNS packets fit as such lazy <-> strict is O(1) for you14:40:28
@toonn:matrix.orgtoonn Do you have a name on Codeberg? 14:50:12
@toonn:matrix.orgtoonn For some Co-authored-by attribution ; ) 14:50:51
@toonn:matrix.orgtoonn magic_rb: ^ 16:12:49
@magic_rb:matrix.redalder.orgmagic_rb toonn: magic_rb magic_rb@redalder.org 16:35:28
@magic_rb:matrix.redalder.orgmagic_rb * toonn: magic_rb <magic_rb@redalder.org> 16:35:34
@toonn:matrix.orgtoonn Thanks : ) 16:50:13
13 Sep 2025
@etherbloom:catgirl.cloudEtherbloom [they/sie] {you&} 🐲🦊👿 changed their display name from Etherbloom [they/sie] {you&} 🐲🦊👿 to Etherbloom @MRMCD25 [they/sie] {you&} 🐲🦊👿.13:45:13
@etherbloom:catgirl.cloudEtherbloom [they/sie] {you&} 🐲🦊👿 changed their display name from Etherbloom @MRMCD25 [they/sie] {you&} 🐲🦊👿 to Etherbloom @MRMCD25 [📞3724] [they/sie] {you&} 🐲🦊👿.13:46:32
@donald8359:matrix.orgDonald joined the room.15:12:26
@validitymaiden:matrix.orgvaliditymaiden joined the room.17:19:26
@validitymaiden:matrix.orgvaliditymaiden set a profile picture.17:31:46
@validitymaiden:matrix.orgvaliditymaiden changed their profile picture.17:32:26
14 Sep 2025
@zxfsee:matrix.orgzxfsee changed their profile picture.15:42:38
@donald8359:matrix.orgDonald set a profile picture.20:44:21
17 Sep 2025
@etherbloom:catgirl.cloudEtherbloom [they/sie] {you&} 🐲🦊👿 changed their display name from Etherbloom @MRMCD25 [📞3724] [they/sie] {you&} 🐲🦊👿 to Etherbloom [they/sie] {you&} 🐲🦊👿.09:02:17
@clerie:entr0py.declerie

I was poking around the ifstate module a little because I wondered how password files are solved for ifstate in NixOS found this

sed -i $'s|\'!include |!include \'|' $out

ifstate is using the yaml tag !include to specify if a string is used as a password or as a file containig a password. The NixOS module ist using toJSON and replacing every string startig with !include.

This feels very sketchy to me. Is there a better way to solve this in NixOS or is this state of the art?

https://github.com/NixOS/nixpkgs/blob/c23193b943c6c689d70ee98ce3128239ed9e32d1/nixos/modules/services/networking/ifstate.nix#L29

10:42:29
@hexa:lossy.networkhexa (clat on linux when)
        sed -i -e "s/'\!\([a-z_]\+\) \(.*\)'/\!\1 \2/;s/^\!\!/\!/;" $out
10:45:56
@hexa:lossy.networkhexa (clat on linux when)from elsewhere in nixpkgs10:45:59
@hexa:lossy.networkhexa (clat on linux when)https://github.com/NixOS/nix/issues/491010:46:33
@emilazy:matrix.orgemilyYAML would make a mess out of the language semantics :(13:21:44
@emilazy:matrix.orgemilyTOML already has13:21:46
@marcel:envs.netMarcel Idk, I am open for better suggestions 16:58:10

There are no newer messages yet.


Back to Room ListRoom Version: 6