!VhzbGHamdfMiGxpXyg:robins.wtf

NixOS LXC

33 Members
lxc, lxd, incus discussions related to NixOS14 Servers

Load older messages


SenderMessageTime
20 Mar 2024
@adam:robins.wtfadamcstephens I like that I can read every line and know where it came from. If there were some other variables in the `let` included in this list, it could be less clear using `with` what the source was.  01:15:15
@adam:robins.wtfadamcstephens I do agree this list is probably past the length most people would side with me  01:15:58
@adam:robins.wtfadamcstephens Any other thoughts? I’ll update that and the mddoc 01:16:43
@hexa:lossy.networkhexaI saw both on mobile, hence commented here01:17:36
@hexa:lossy.networkhexalet me check01:17:38
@adam:robins.wtfadamcstephenswhere was the mdDoc deprecation annouced?01:20:51
@hexa:lossy.networkhexagood question01:21:12
@adam:robins.wtfadamcstephensit's not deprecated in code and is listed as a noop in the manual, so i guess it's just silently dropped now01:21:36
@adam:robins.wtfadamcstephenshttps://nixos.org/manual/nixpkgs/unstable/#lib-options-mddoc01:21:42
@adam:robins.wtfadamcstephensor silently passed through01:21:58
@hexa:lossy.networkhexayeah, the manual is markdown, that's all I know01:22:05
@hexa:lossy.networkhexaand for some reason that includes the options01:22:21
@hexa:lossy.networkhexaI had no idea you could pass a list to mkPackageOption01:24:39
@adam:robins.wtfadamcstephensyeah, someone else did that before me. mkg maybe01:26:27
@hexa:lossy.networkhexathe negation in the firewall assertion 🙈01:26:48
@adam:robins.wtfadamcstephensyeah that's some ugly logic. but... feel free to give me an equivalent alternative :)01:28:11
@hexa:lossy.networkhexano 😄 01:28:25
@adam:robins.wtfadamcstephensonly idea i have is to pull the inner condition out to a variable, but it's just shifting the code around01:29:05
@hexa:lossy.networkhexayeah, don't bother01:29:32
@hexa:lossy.networkhexalib.optional should not exis01:31:27
@hexa:lossy.networkhexa * lib.optional should not exist01:31:29
@adam:robins.wtfadamcstephensbecause it's not clearly a list?01:32:27
@hexa:lossy.networkhexaI remember that I confused optionals and optional very often early on01:33:44
@hexa:lossy.networkhexabut now I think just optionals should be sufficient for everything01:33:58
@adam:robins.wtfadamcstephensok, works for me :)01:34:22
@hexa:lossy.networkhexamaking the argument a proper list makes extending it much simpler01:34:56
@adam:robins.wtfadamcstephensyep01:35:03
@hexa:lossy.networkhexa also the reason I'm a friend of always expanding lists cough 01:35:09
@hexa:lossy.networkhexabut that ship has sailed01:35:12
@adam:robins.wtfadamcstephenswhat do you mean always expanding lists?01:35:37

Show newer messages


Back to Room ListRoom Version: 10