lassulus changed the topic of #nixos-de to: Willkommen im deutschen NixOS Channel. | Meetup Donnerstags 19:00 - 23:00 auf Mumble: nix-shell -p mumble --run "mumble mumble://$USER@lassul.us/nixos"
mbrgm_ has joined #nixos-de
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos-de
h0m1 has quit [Ping timeout: 244 seconds]
h0m1 has joined #nixos-de
lassulus has quit [Ping timeout: 256 seconds]
h0m1 has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos-de
lassulus has joined #nixos-de
lassulus has quit [Ping timeout: 256 seconds]
lassulus has joined #nixos-de
lassulus has quit [Ping timeout: 246 seconds]
lassulus has joined #nixos-de
lassulus has quit [Ping timeout: 256 seconds]
lassulus has joined #nixos-de
palo1 has joined #nixos-de
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
lassulus has quit [Quit: WeeChat 2.7.1]
lassulus has joined #nixos-de
lassulus has quit [Ping timeout: 240 seconds]
lassulus has joined #nixos-de
lassulus has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
lassulus has joined #nixos-de
lassulus has quit [Ping timeout: 246 seconds]
lassulus has joined #nixos-de
supersandro2000 has quit [Quit: The Lounge - https://thelounge.chat]
supersandro2000 has joined #nixos-de
lassulus has quit [Quit: WeeChat 2.9]
lassulus has joined #nixos-de
supersandro2000 has quit [Quit: The Lounge - https://thelounge.chat]
supersandro2000 has joined #nixos-de
<blitzclone[m]> kurze nix frage: wenn ich ein attribute set habe, wie kann ich da einzelne einträge löschen. z.b. in `{ foo = { bar = 1; zoo = 2; }; zoo = 17; }` möchte ich `foo.zoo` löschen?
<IdleBot_4fae1f80> lib/attrsets.nix filterAttrs ?
<IdleBot_4fae1f80> blitzclone[m]: ↑
<lassulus> { inherit ({ foo = { bar = 1; }; zoo = 17;} // { zoo = null; }) foo; }
<lassulus> ups
<lassulus> zu kompliziert
<lassulus> { inherit ({ foo = { bar = 1; }; zoo = 17;}) foo; }
<lassulus> nicht soo nice :D
<lassulus> alternativ mit filterAttrsRecursive:
<lassulus> lib.filterAttrsRecursive (n: v: v != null) ({ foo = { bar = 1; }; zoo = 17;} // { zoo = null; })
<lassulus> macht aber alle value die null sind weg
ehmry has quit [Ping timeout: 272 seconds]
<sterni> builtins.removeAttrs { zoo = 2; foo = 3; } [ "zoo" ]
<sterni> blitzclone[m]: ^ ist auch nicht rekursiv was glaub gewünscht ist oder?
<lassulus> ah, die lösung hatte ich auch vergessen zu posten, aber wollte ne generische lösung haben :D
<blitzclone[m]> Mmh. Ich probiere nachher nochmal rum. Mit recursiveUpdate und filterAttrsRecursive geht's schon irgendwie aber schön ist alles nicht.
<blitzclone[m]> Aber schon mal danke für die Pointer :)
<Mic92> NixOS meetup in 10 minuten
<Mic92> nix-shell -p mumble --run "mumble mumble://$USER@lassul.us/nixos"
ehmry has joined #nixos-de