!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

899 Members
Declaratively manage your switching, routing, wireless, tunneling and more.262 Servers

Load older messages


SenderMessageTime
12 Sep 2025
@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
        sed -i -e "s/'\!\([a-z_]\+\) \(.*\)'/\!\1 \2/;s/^\!\!/\!/;" $out
10:45:56
@hexa:lossy.networkhexafrom elsewhere in nixpkgs10:45:59
@hexa:lossy.networkhexahttps://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
21 Sep 2025
@rappet:matrix.orgContact @rappet:rappet.xyz instead changed their display name from rappet to Contact @rappet:rappet.xyz instead.15:08:46
22 Sep 2025
@felix.schroeter:scs.ems.host@felix.schroeter:scs.ems.host changed their display name from Felix SchrΓΆter to Felix SchrΓΆter (πŸŒ„ 29.09. – 05.10.).09:56:06
23 Sep 2025
@a-kenji:matrix.orgkenji changed their display name from a-kenji to kenji.10:39:40
@freexploit:trafkin.com@freexploit:trafkin.com 20:37:17

Show newer messages


Back to Room ListRoom Version: 6