gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
drakonis has joined #nixos-chat
<pie_> wait
<pie_> oh but im guessing that doesnt work with sandbox, nvm
Synthetica has quit [Quit: Connection closed for inactivity]
cjpbirkbeck has joined #nixos-chat
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-chat
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?
<adisbladis> elvishjerricco: Utilising udisks2
<adisbladis> Lets see if I can find it
<{^_^}> #21403 (by aszlig, 2 years ago, open): [WIP] NixOS integration of nixpart
<adisbladis> I think that's the one
<elvishjerricco> Oh that's a big one :P
<adisbladis> That's sexy as hell
<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.
Boubert has joined #nixos-chat
ajirx has joined #nixos-chat
clever has joined #nixos-chat
Boubert has quit [Quit: Mutter: www.mutterirc.com]
__monty__ has joined #nixos-chat
eyJhb has joined #nixos-chat
ajirx has quit [Ping timeout: 268 seconds]
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?
<{^_^}> https://github.com/NixOS/nixpkgs/issues/57602 (by primeos, 20 weeks ago, open): sway: Optimal NixOS integration
<gchristensen> I have not
waleee-cl has joined #nixos-chat
__monty__ has quit [Ping timeout: 245 seconds]
Scruffy is now known as aleph-
__monty__ has joined #nixos-chat
<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
<cransom> you could also http://asciiflow.com/ if you were feeling minimal.
<gchristensen> oh cool that looks even better than the one I use, http://graphviz.herokuapp.com/
<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> eyjhb: yep
<joepie91> "It can load and save diagrams to a custom XML format (gzipped by default, to save space)"
<joepie91> sounds like you can make it do plaintext XML
<manveru> drag&drop is mostly cut-line&paste-line, not sure that qualifies
<adisbladis> I've used Umbrello before, it's pretty neat
<manveru> but yeah, given the way graphviz works, you can't easily change the way it looks
<adisbladis> Umbrello is sort of the KDE equivalent of Dia
<eyJhb> Anyone used - https://mermaidjs.github.io/#/ ?
ajs124 has quit [Quit: Gateway shutdown]
<adisbladis> I can't remember what I didn't like about Dia except it being GTK (and therefore looking like crap on anything non-gnome)
<joepie91> adisbladis: graphical fidelity of output diagrams is Not Great, and also the UI is a bit clunky
<joepie91> not very intuitive drag-and-drop behaviour and such
<adisbladis> joepie91: Dia?
<gchristensen> https://github.com/seemoo-lab/opendrop this looks fun to packet
<gchristensen> package*
<joepie91> yeah
<adisbladis> joepie91: Yeah, that does ring a bell
<joepie91> example Dia diagram
<adisbladis> gchristensen: Looks pretty easy
<joepie91> it /works/, but it was fiddly, and still doesn't look great
<gchristensen> yeah
<gchristensen> it does!
<mgdm> eyjhb: Oh yeah, I use Mermaid for sequence diagrams
ajs124 has joined #nixos-chat
<adisbladis> gchristensen: Tell me when you've packaged it ;) I wanna try it too :)
veske has joined #nixos-chat
veske has quit [Quit: This computer has gone to sleep]
Jackneill has quit [Remote host closed the connection]
<gchristensen> so the capital one hacker use(d|s) nixos
<pie_> wut :D
<pie_> huh
<joepie91> gchristensen: I've been racking my brain for the past week or so on where I've seen the name "Paige Thompson" before
<joepie91> I still don't think this is it though
<joepie91> I was gonna joke "microSD-sized SSD when" but yeah, this is basically that :P
<__monty__> I was gonna ask for NVMe thumbdrives when? But it seems that wasn't ambitious enough.
<samueldr> nvme thumbdrives are possible with PCIe lanes over thunderbolt AFAIUI
<samueldr> I think only the form factor needs to be thumbified
<averell> i wouldn't mind my yubikey having 1TB
waleee-cl has quit [Quit: Connection closed for inactivity]
<__monty__> Any opinions on LUKS vs plain dm-crypt?
ajirx_ has joined #nixos-chat
ajirx has quit [Ping timeout: 258 seconds]
psyanticy has quit [Quit: Connection closed for inactivity]
<pie_> i thought they were related
<__monty__> They are, luks is built on top of.
endformationage has joined #nixos-chat
<manveru> joepie91: well, he's most likely the person they accuse, though i got no clue if he's guilty of anything: https://gitlab.com/netcrave/nixos-configs/blob/master/laptop/configuration.nix#L283 and https://www.justice.gov/usao-wdwa/press-release/file/1188626/download both use "erratic"
<gchristensen> (she)
<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]
__monty__ has quit [Quit: leaving]
<tazjin> example for the NixOS module documentation rendering I was talking about on Discourse: https://storage.googleapis.com/nixdoc/modules/7a130c2qcnyqc8g28fnq63vypv0s3bid-journaldriver-docs.html
<tazjin> adisbladis: ^ this one won't give you ngrok errors ;-)
<infinisil> tazjin++ That's pretty neat!
<{^_^}> tazjin's karma got increased to 8