!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

422 Members
Discussion about documentation improvements around the Nix ecosystem86 Servers

Load older messages


SenderMessageTime
30 Nov 2023
@tomberek:matrix.orgtomberekhopland (valorent vicky): often these settings descriptions are taken from upstream: https://github.com/fail2ban/fail2ban/blob/44fa2959e7c8ee010138250b3dafcfebc57dbce8/config/jail.conf#L55. I. Such a case, please consider improving upstream documentation so other benefit as well. 03:57:28
@i97henka:matrix.orgi97henkaSorry, got some family commitment popping up and conflicting with today's meeting. See you again next time.14:33:21
@nbp:mozilla.orgnbpMuch better, however as a personal recommendation, I suggest using the list of times after each repeated failures. I found that attackers would repeat their attack after a while once they notice that they are banned, and alternate between corrupted hosts. 14:56:49
@nbp:mozilla.orgnbp *

Much better, however as a personal recommendation, I suggest using the list of times after each repeated failures, using something like bantime-increment.multipliers = "1 2 4 8 16 …";

I found that attackers would repeat their attack after a while once they notice that they are banned, and alternate between corrupted hosts.

Using multiplier following some exponential definitely help at getting rid of most repeated attempts.

15:00:17
1 Dec 2023
@bzzm3r:matrix.org@bzzm3r:matrix.org
In reply to @fricklerhandwerk:matrix.org
What I could really need help with is cleaning up the language reference in the Nix manual. It’s still mostly a long meandering wall of text that needs to be a lot more concise, needs more focused examples, and most importantly syntax patterns for all the constructs.
Could you clarify what you mean by "syntax patterns"? Also, just to confirm, you're referring to this? https://nixos.org/manual/nix/unstable/language/
04:38:06
@ichbinmatz:matrix.orgichbinmatz joined the room.04:49:04
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @bzzm3r:matrix.org
Could you clarify what you mean by "syntax patterns"? Also, just to confirm, you're referring to this? https://nixos.org/manual/nix/unstable/language/

Things like at the top of this document: https://nixos.org/manual/nix/unstable/language/constructs/lookup-path

I don't want to call them grammar because we're still far away from actually formalising any of that

09:04:41
@fricklerhandwerk:matrix.orgfricklerhandwerkBut grammar rules would be the technical term09:04:51
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @ThorHop:matrix.org
Would it be wrong to fire off PR's directly, or should I do it in bulk every now and then?
Please do make PRs. Try to make small ones, they're easier to review and get merged quickly.
09:05:36
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @ThorHop:matrix.org
Would it be wrong to fire off PR's directly, or should I do it in bulk every now and then?
* Please do make PRs. Try to make small ones (both scope and diff), they're easier to review and get merged quickly.
09:05:58
@moritz.hedtke:matrix.orgmoritz.hedtke set their display name to Moritz Hedtke.11:08:07
2 Dec 2023
@mao_tse-tung:matrix.orgmao_tse-tung joined the room.04:30:05
@bzzm3r:matrix.org@bzzm3r:matrix.org
In reply to @fricklerhandwerk:matrix.org

Things like at the top of this document: https://nixos.org/manual/nix/unstable/language/constructs/lookup-path

I don't want to call them grammar because we're still far away from actually formalising any of that

ah cool, so a little BNF like thing
04:33:51
@asymmetric:matrix.dapp.org.ukasymmetricthis is kinda neat https://landscape.nixlang.wiki/11:33:10
@bzzm3r:matrix.org@bzzm3r:matrix.org ran nix-shell in nixpkgs/docs/ a while....still compiling 🤣 23:13:54
@bzzm3r:matrix.org@bzzm3r:matrix.orgmy guess is that....oh, yeah23:14:05
@bzzm3r:matrix.org@bzzm3r:matrix.org i think i know why. i forgot to set npins up 23:14:23
@bzzm3r:matrix.org@bzzm3r:matrix.org No, I don't think that's it. The shell uses the parent nixpkgs repo as its nixpkgs...which causes my system to have to work quite hard, I suppose because build artifacts for master are not yet up on cachix? 🤔 23:33:59
@bzzm3r:matrix.org@bzzm3r:matrix.orgNot entirely clear on that point for now, but I have a workaround.23:34:38
3 Dec 2023
@bzzm3r:matrix.org@bzzm3r:matrix.orghttps://github.com/NixOS/nixpkgs/pull/27179701:12:09
@bzzm3r:matrix.org@bzzm3r:matrix.org(i'm not actually sure if it's useful, but...nothing lost, i suppose, in seeing if there is interest)02:39:12
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (valorent vicky) to hopland (meticulous montesquieu).14:08:33
4 Dec 2023
@ibizaman:matrix.orgibizaman joined the room.17:42:34
5 Dec 2023
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.00:38:12
@bzzm3r:matrix.org@bzzm3r:matrix.org hey docs team, i'm continuing to dig deep. currently just finished making my own mkShell implementation that isn't "bash focused" ([this SO answer]((per: https://stackoverflow.com/a/71112117/3486684)) partially gave me the hint, but also motivated by wanting to not use direnv) 05:15:44
@bzzm3r:matrix.org@bzzm3r:matrix.orgI've been collating various little fixes/clarifications to the stdenv chapter as i did this, so i'll probably PR them all for consideration too05:16:25
@bzzm3r:matrix.org@bzzm3r:matrix.org one question I am left with, ultimately, however is: why env vars? why do we end up storing stuff like builder, shellHook, *Phase as environment variables for shells? 05:17:04
@bzzm3r:matrix.org@bzzm3r:matrix.orgwhy not something less volatile/touchy? for example: files. files in the store? 05:17:48
@bzzm3r:matrix.org@bzzm3r:matrix.org * hey docs team, i'm continuing to dig deep. currently just finished making my own mkShell implementation that isn't "bash focused" (this SO answer partially gave me the hint, but also motivated by wanting to not use direnv) 05:25:09
@bzzm3r:matrix.org@bzzm3r:matrix.org

if we had a suitable "arithmetic" for "environment variable files", would we be able to replace env vars with such files? such an "arithmetic" i suppose would consist of operations like:

  • merging two environment variables: most of the times, this will be an 'override' operation depending on the "type" of the environment variable (much like what happens in attribute sets, heh...oh wait...
05:26:19

Show newer messages


Back to Room ListRoom Version: 6