andi- has quit [Remote host closed the connection]
andi- has joined #nixos-chat
<pie_>
graham...
<pie_>
gchristensen: how cruel of you to make me stare at this through a screen
<pie_>
you are what you eat...
<drakonis>
if you are what you eat, then if you eat a pie, then are you delicious?
<pie_>
( ͡° ͜ʖ ͡°)
<pie_>
no doubt
<drakonis>
agreed
<elvishjerricco>
I wonder if nixos-generate-config should only generate file system definitions for ZFS file systems if they have `mountpoint=legacy`
endformationage has quit [Quit: WeeChat 2.5]
cjpbirkbeck has quit [Quit: Quitting now.]
<ashkitten>
has anyone had issues with firefox not connecting to websockets immediately? i have no idea what's going on but it's been an issue for quite a while where it just takes a really long time to connect to say, mastodon's streaming api
<ashkitten>
and it's just firefox
drakonis has quit [Quit: WeeChat 2.4]
Jackneill has joined #nixos-chat
andi- has quit [Remote host closed the connection]
andi- has joined #nixos-chat
clever has quit [Ping timeout: 246 seconds]
<joepie91>
ashkitten: so I've found this issue to both exist in Firefox and Chrome, but it happens sooner in Firefox - there appears to be some sort of internal limit in terms of how many concurrent websockets it can support, and it takes a while for 'failed' sockets to be cleaned up
<joepie91>
ashkitten: so if something very rapidly tries to reconnect to a websocket and keeps failing, that limit gets used up, and it takes a while for enough old connections to clear out that a new attempt can be made
<joepie91>
that is my working theory, anyway - I can reliably reproduce this by making a lot of failed websocket connection attempts in rapid succession
<joepie91>
doing so will cause delays for every websocket connection attempt in the entire browser
<joepie91>
and the delay seems to loosely correlate to how fast the reattempts are
cransom has quit [Quit: WeeChat 2.4]
ajirx has quit [Ping timeout: 272 seconds]
<adisbladis>
elvishjerricco: Wasn't there some work towards something like that in nixpkgs? But FS agnostic?
<elvishjerricco>
adisbladis: First I've heard of that. How would it be FS agnostic?
<elvishjerricco>
I don't think that's related to my question though.
<adisbladis>
elvishjerricco: Oh, I misread your question it seems ^_^
* adisbladis
goes off to fetch more cofffee
<elvishjerricco>
NixOS recommends `mountpoint=legacy` because using an automatic mountpoint can cause a race condition between the NixOS mounting script and the ZFS mount daemon.
<adisbladis>
That makes sense, yes
<elvishjerricco>
So I was thinking maybe nixos-generate-config should just not generated fileSystems definitions for ZFS file systems that don't follow this recommendation, allowing the ZFS mount daemon to handle those.
jtojnar has quit [Remote host closed the connection]
ajirx has joined #nixos-chat
psyanticy has joined #nixos-chat
<sphalerite>
elvishjerricco: funny, I had the same thought today :D
__monty__ has quit [Ping timeout: 258 seconds]
<Taneb>
Here's my not very well thought out idea of the week:
<Taneb>
Nix drv are structurally very JSON like
<Taneb>
So we could use jq to manipulate them.
<Taneb>
In fact, we could even make a nix-like thing which uses jq instead of the nix language
__monty__ has joined #nixos-chat
<manveru>
hmm
<manveru>
well, `nix show-derivation` already converts them to JSON :)
<manveru>
i often use jq with that
<adisbladis>
I often use nix-instantiate with jq to debug nix code
<adisbladis>
Taneb: Tbh it's a bit of a shame our drv files are not in json
<Taneb>
Yes but I'm proposing the other way round: using jq to generate the drvs in the first place
<adisbladis>
Yeah I get that
<Taneb>
Right
<Taneb>
Using jq with nix show-derivation is what gave me this idea
<adisbladis>
I wouldn't want to create derivations in jq ;)
<adisbladis>
The nix language is just so much nicer
<Taneb>
It's certainly so much different
<Taneb>
Nix is a lot more conventional language than jq
<adisbladis>
¯\_(ツ)_/¯
<Taneb>
If I get the motivation I might try and see if I can hack at nix for this
<adisbladis>
Taneb: Why though? For the lulz?
<Taneb>
adisbladis: partly that, and partly I think it's different enough way of expressing things that it might be interesting
<adisbladis>
Ok, cool then (:
<Taneb>
I think the main thing that Nix can do that jq can't is functions in jq are kind of second-class citizens, so things like overlays would be trickier
<manveru>
so... you wanna rewrite nix in bash and jq or something? :)
<sphalerite>
dhall and turtle please :p
<manveru>
should i really search for turtle now?
jtojnar has joined #nixos-chat
<manveru>
i guess dhall could work for a subset of nix now
<manveru>
maybe you can add dhall support to hnix?
<__monty__>
manveru: Dhall-nix isn't sufficient for your usecase?
<manveru>
if it ever is marked as non-broken again...
<Taneb>
sphalerite: dhall is in the other direction from nix than jq
avn has joined #nixos-chat
<Taneb>
Like, Dhall is close to being "Nix with types", jq is a completely different way of doing things
<Taneb>
But hey, if I can hack Nix to use jq, I can also hack Nix to use Dhall
<sphalerite>
Taneb: I know it is :p
<sphalerite>
Taneb: maybe guix's stuff could be helpful for your adventure, since they use nix-daemon AFAIK
<Miyu-chan>
lol
<Miyu-chan>
Hm, a jq combinator in Nix, maybe?
<Miyu-chan>
Just a thought.
cransom has joined #nixos-chat
<__monty__>
How about a guix/guile-to-nix?
<Taneb>
__monty__: that's especially uninteresting to me, I'm afraid
<__monty__>
You don't have to do the work. Also, why?
<Taneb>
I'm thinking relative to my jq idea. We already know what Nix-but-it-uses-guile-instead looks like, it looks a lot like guix
<__monty__>
Yes, the point would be you get to reuse all the work put into guix. Which is a lot more than the work that's been put into json nix packages : )
<Taneb>
So, more useful, sure
<sphalerite>
gchristensen: since you're a full-time sway user iirc, have you already seen #57602?
<eyJhb>
What do you guys using for making Diagrams, e.g. making a infrastucture chart, etc.?
<gchristensen>
I run a macos vm for omnigraffle
<eyJhb>
I remember srhb talking about something at some point, which sounded like something that could be version controlled
<eyJhb>
That sounds overkill gchristensen :/
<gchristensen>
graphviz and dot is nice for small things
<eyJhb>
Really like something that is 1. Version controlable (not bin) 2. Something free and easily accessable on Linux, Mac, Windows 3. Can convert to PDF/PNG
<cransom>
i had auto generated graphs for network gear long, long ago via dot and lldp neighbor tables, which was pretty killer.
<eyJhb>
4. Does not require LaTeX or 1Gb of dependencies.
<gchristensen>
draw.io is pretty nice in that it has AWS etc. node types built in
<eyJhb>
gchristensen: I think Graphviz was what srhb talked about back then
<manveru>
+1 for graphviz, it can do pretty awesome stuff
<mgdm>
eyjhb: I tend to go for draw.io or graphviz depending what I'm up to. Generally draw.io though
<eyJhb>
Also normally use draw.io :( Just want something version controlable that I can throw into Git
<mgdm>
I have omnigraffle but I find it fiddly to use
<ashkitten>
joepie91: dang, that sucks. i guess it probably happens on startup because i have a few tabs that connect to websockets
<eyJhb>
Graphviz looks pretty nice and simple
<ashkitten>
(mastodon, mastodon, discord, glowing-bear, maybe matrix and wire?)
<gchristensen>
it is nice and simple
<joepie91>
ashkitten: quite possibly yeah
<gchristensen>
and as long as you're doing nice and simple things, graphviz is great
<joepie91>
ashkitten: no guarantee that this is your issue though :)
<gchristensen>
especially if you're not too fussed about how it lays things out
<joepie91>
ashkitten: and afaik there are no open issues about the issue I described, somehow, neither for Firefox nor for Chrome
<ashkitten>
heck
<eyJhb>
Hmm.. draw.io does xml export :D
<joepie91>
then again, both Firefox' and Chrome's bug trackers are notorious /dev/nulls, so it probably wouldn't matter much if there were issues :D
<eyJhb>
gchristensen: I basically just want to create a simple overview of how OCTP functions as a platform
<ashkitten>
if only there was an easy way to save my pinned tabs and open the browser without them temporarily
<eyJhb>
And might need to make some graphs for my presentation for LEGO
<gchristensen>
yeah that is probablytoo complicated
<joepie91>
ashkitten: blank profile?
<ashkitten>
yeah probably
<gchristensen>
I think you'll find almost immediately that you want to be able to do some click-and-drag moving of nodes
<eyJhb>
Yeah okay, so I guess draw.io will take the cake then
<mgdm>
someone in here has a habit of using that cloudblah thing that makes infra diagrams in an isometric 3D sort of way which look pretty but are basically unusable beyond trivial systems
<eyJhb>
Or........................ LaTeX :(
<joepie91>
eyjhb: it's a bit awkward, but, Dia?
<joepie91>
(GNOME's thing)
<gchristensen>
mgdm: so true
<eyJhb>
joepie91: considered that too, but isn't that binary file format?
<gchristensen>
mgdm: unless you want to impress someone with an overwhelmingly unusable big map
<joepie91>
I think it's XML?
<joepie91>
may be confusing it with draw.io though
<mgdm>
gchristensen: there's defo a time and a place for that but it's not in a runbook
<gchristensen>
god no
<eyJhb>
joepie91: Do you mwan Draw? From LibreOffice?
<joepie91>
no
<manveru>
eyjhb: the site i showed you allows you to do some operations with the mouse/keyboard :)
<eyJhb>
manveru: yeah, but not drag and drop, right?
<joepie91>
she*, yeah, and I don't recognize her nickname :P
<joepie91>
it's really her real name that I recognize from somewhere, I just can't quite place it
<manveru>
sorry, didn't know paige is a womans name
<gchristensen>
n oworries
<gchristensen>
she was in #nixos until I banned her one day for joining/parting repeatedly
<manveru>
heh
<gchristensen>
(I just unbanned hor.)
<manveru>
neat hack anyway :)
<__monty__>
Did I read the article right that she posted about all of it and yet they still treat it as a crime rather than exposing security malpractices?
<pie_>
__monty__: regardless of what actually happened, what do you expect
<pie_>
a company to own up to their actions? thats bad pr
<__monty__>
Is it really stealing if you didn't take anything away from someone? : >
<joepie91>
(it's not)
<__monty__>
So piracy *isn't* theft, legally speaking?
* gchristensen
looks around for a lawyer
<joepie91>
__monty__: correct
<joepie91>
at least, in every jurisdiction that I know of
gchristensen has quit [Quit: WeeChat 2.4]
{^_^} has quit [Remote host closed the connection]
<joepie91>
there's a reason that 'piracy' (ie. intellectual property violations) has its own legal articles :P
__monty__ has quit [Quit: rebootying]
{^_^} has joined #nixos-chat
__monty__ has joined #nixos-chat
gchristensen has joined #nixos-chat
<pie_>
huh
Jackneill has joined #nixos-chat
Jackneill has quit [Remote host closed the connection]