gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
drakonis1 has joined #nixos-chat
drakonis_ has quit [Ping timeout: 256 seconds]
<cole-h> At what % ZFS fragmentation should I start to worry and/or look into defragging?
<infinisil> You don't need to look into defragging, because you can't :P
drakonis1 has quit [Ping timeout: 260 seconds]
<pie_> i swear zfs had defragging
* pie_ scratches head
<pie_> this came up before and i gave the same answer and then probably got told im sure xD
drakonis_ has joined #nixos-chat
<samueldr> so, all the way from 0% to 100% fragmentation you should worry about defragging, but can't
<samueldr> is that right?
<{^_^}> openzfs/zfs#4785 (by RubenKelevra, 3 years ago, closed): Defragmentation like on btrfs
<infinisil> Apparently it isn't a big problem as per @ryao's comment
slack1256 has joined #nixos-chat
<pie_> i sweare i defragged zfs at some pint
<pie_> can yo do iton freebsd
<pie_> because that might explain that
<samueldr> :( a neat user experience in nixpkgs change broke one of my tools
<infinisil> "Automation of snapshotting a zfs pool and sending it to S3, destroy the pool, recreate, and import the snapshot in order to fix ZFS Fragmentation"
<infinisil> Also, as a data point, my pools are at 17%, 42%, 55% and 73% fragmentation, and I haven't noticed any performance issues
<pie_> <gwern> https://thenewstack.io/microsoft-rust-is-the-industrys-best-chance-at-safe-systems-programming/ microsoft is officially moving any new c++ project to rust instead? that seems like a huge endorsement
<pie_> oh no :)
<pie_> oh huh did anyone see this one <quanticle> gwern: https://blogs.windows.com/windowsdeveloper/2020/04/30/rust-winrt-public-preview/ <-- Yep, Microsoft just unveiled a full set of Windows API bindings for Rust
<gchristensen> samueldr: what's that?
<samueldr> > fetchFromGithub
<{^_^}> You meant fetchFromGitHub, with a capital H.
<samueldr> not that, but the one added to nixpkgs
<samueldr> my nix-universal-prefetch end up accidentally evaluating it
<gchristensen> ack.
<samueldr> and since it eval'd it, well, it throws!
<samueldr> throws up even!
<gchristensen> :x
<samueldr> it went and eval'd all attributes matching ^fetch.*
<gchristensen> ooooo
<gchristensen> what if you turn off aliases?
<samueldr> good idea
<samueldr> I haven't started looking into fixing it just yet
<samueldr> once the nixos-rebuild is started on my pi4 experimental setup I'll do
<samueldr> but that's likely to help
<samueldr> and *anyway* aliases have no reasons to be listed on that tool
<emily> zfs people: any ideas why dsl_scan_iss would be using 70-100% cpu constantly on my laptop, even after a reboot? txg_sync, dp_sync_taskq making a showing as well
<samueldr> oh no
<samueldr> I had forgotten the codename I gave to that nixos release
<emily> (a bunch of z_rd_ints at 10% CPU each also showing up periodically but that seems more normal)
<emily> oh, ok, it's just a scrub
<emily> maybe I should set some limits on those...
<gchristensen> I'm trying to debug this go programand gosh it is annoying
<gchristensen> dozens of goroutines and something is blocked somewhere
<gchristensen> not my department
<gchristensen> I'm just an annoyed use
<gchristensen> r
<cole-h> Which program? zrepl?
<joepie91> lol
<gchristensen> energizer: this is a great article
<{^_^}> packethost/vault-plugin-secrets-packet#12 (by grahamc, 2 weeks ago, open): Sometimes it gets stuck.
<cole-h> o
<cole-h> I didn't realize that was in go
<cole-h> Never looked past that issue when you linked it to me before x)
<gchristensen> )
<cole-h> I suppose you could post what you have already and then ask in there? If it's built with a Nix expression, maybe you need to disable stripping or something?
<gchristensen> yeah I have dontStrip = true;
<gchristensen> ehhh bed time. I'll just hard-loop creatingand revoking creds all night
<gchristensen> .....no need.... it gets locked up roughly every 400 requests.
<cole-h> Ouch
<gchristensen> anyway. still bed time.
<cole-h> o/
<cole-h> gchristensen: Maybe setting gcflags to `-N -l` would help: https://stackoverflow.com/a/45003378
<cole-h> (This disables optimizations and inlining, which might reveal those frames?)
cjpbirkbeck has joined #nixos-chat
<samueldr> and thank you gchristensen, it was indeed a quick and easy fix, to disallow aliases
<samueldr> gchristensen++
<{^_^}> gchristensen's karma got increased to 314, it's a crit!
<cole-h> :D
<lovesegfault> Irenes[m]: Are you IreneKnapp on GH?
<Irenes[m]> yes
<Irenes[m]> hi
<lovesegfault> Irenes[m]++
<{^_^}> Irenes[m]'s karma got increased to 5
<lovesegfault> Thank you so much for fixing the Thunderbird U2F issue :)
<lovesegfault> I really appreciate it
<Irenes[m]> oh, you're very welcome!
<Irenes[m]> it needed to be done, and I'm eager to use it myself
<Irenes[m]> and I guess nobody else was going to be able to, per the discussion, so
<lovesegfault> <3 Irenes[m]
<{^_^}> Irenes[m]'s karma got increased to 6
<Irenes[m]> <3
<lovesegfault> It's really curious that the FF build doesn't need the same fix
<Irenes[m]> I think somebody already did it for FF a few years ago
<Irenes[m]> I think I saw that when I was poking around
<Irenes[m]> let me check
<Irenes[m]> hmm, no, it doesn't
<Irenes[m]> my guess would be that something about how the `patchelf --set-rpath` call works is erasing the default path for Thunderbird, but not for Firefox
<lovesegfault> Yeah, I say that b/c I copied the TB code from FF and just beat it into place
<Irenes[m]> if so, that would explain why the symlink approach didn't work
<Irenes[m]> ah haha
<Irenes[m]> it is possible that Firefox doesn't use dlopen to find libudev, also
<Irenes[m]> I haven't checked the FF code
<Irenes[m]> I did confirm that the Rust dlopen() call that I identified, actually does find libudev with this patch. so I do believe that call site was the one responsible. I don't know if there's analogous code in FF or how the two projects share code with each other.
<samueldr> :|
<samueldr> I think I have slain a ghost in the machine
<samueldr> I am trialing using a raspberry pi for my off-hours passive consumption of entertainment
drakonis_ has quit [Ping timeout: 260 seconds]
<samueldr> well, I'm about to, but just before I'm making quick check with some video files I keep around that are a mixed bags of codecs
<samueldr> whenever this video played some segments, the display would glitcho ut
<samueldr> glitch out*
<samueldr> I thought it could be related to how it's being decoded on the gpu, I'm unsure if it helped or not, but switching vo= on mpv changed behaviour a bit
<samueldr> then I found out I could be going frame by frame and it'd go off during that frame!
<samueldr> now, that's weird... but not as weird as taking a screenshot, fine in windowed mode, but when the screenshot is fullscreen, THE DISPLAY GLITCHES OUT
<Irenes[m]> oh wow
<samueldr> I ended up re-seating the display cable and the issue disappeared, but SpoOoOoOky!
<Irenes[m]> well
<cole-h> Sounds more like you've invited a ghost into your machine lol
waleee-cl has quit [Quit: Connection closed for inactivity]
<Irenes[m]> sounds like an HDMI issue
<samueldr> yeah
<samueldr> probably is
<samueldr> I wonder which side, the nexdock or the rpi
<Irenes[m]> I don't know the extent to which there could be compression issues in the video that still exist over the wire
<samueldr> and possibly the cable is partially at fault
<Irenes[m]> sure
<samueldr> I know the rpi4 HAS issues with signalling
<samueldr> Irenes[m]: compression issues in a png screenshot? :)
<samueldr> I really think that the particular image must have been just right in some way to activate a marginal issue
<samueldr> ironically, it happened when an electrical-type character used their powers, as if it was an EM pulse
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<Irenes[m]> oh a png
<Irenes[m]> huh.
<Irenes[m]> colorspace maybe? there was that Android colorspace security bug a few days ago
<samueldr> at that point I knew it wasn't an issue during decoding
<samueldr> maybe, who knows, but more likely signaling related since reseating cables changed
<samueldr> well, maybe-fixed the issue
cjpbirkbeck has joined #nixos-chat
<Irenes[m]> yeah
drakonis_ has joined #nixos-chat
<Irenes[m]> oh! it could just have been sufficiently complex as an image that it needs one more packet than otherwise
<Irenes[m]> and the packet loss over the cable could have been just high enough for that to be a problem
<Irenes[m]> that seems like a much simpler problem than something in the original encoding somehow being carried through
<Irenes[m]> I ran into an issue like that once, not with a specific image, but with a GPU that could only output at a max bandwidth that was less than what I needed for my monitor... and Linux didn't know that, so I could run X fine with a terminal or whatever, but as soon as I opened a browser or anything else graphically complex, the monitor would go blank
<ashkitten> technology is wild
<Irenes[m]> yeahhhh.
<cole-h> Technology, what is that?
<samueldr> oh well, *that* video rebooted the pi :/
<samueldr> (another video)
<samueldr> could be unstable from overclocking to see if it helped with the issues it seems to be having
* samueldr dials back from 11
<Irenes[m]> hehhh nod
{^_^} has quit [Excess Flood]
{^_^} has joined #nixos-chat
slack1256 has quit [Remote host closed the connection]
<samueldr> stating this here as it *can* be useful for other people, maybe, one day
<samueldr> if your raspberry pi 4's sound on hdmi out cuts out, check your output levels
<samueldr> at least on my current setup, it might be the display (nexdock), the default it had was low, and it made the sound cut out
<samueldr> though it's not simply a question of volume, it seems, as if I reduce the sound of the app, either inside the app, or in pavucontrol, it doesn't cut out, only if the *output device*'s volume is low
drakonis_ has quit [Ping timeout: 258 seconds]
drakonis_ has joined #nixos-chat
<Irenes[m]> huh.
<samueldr> oh crud
<samueldr> my testing may have been flawed
<samueldr> it was left to mono output in the configuration :(
<Irenes[m]> ah, sure
<samueldr> and now it's cutting out
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<samueldr> switching device helped
<samueldr> so I guess it's the display thingy (a nexdock) that has some trouble?
<samueldr> I hate technology too
<energizer> how do i post a picture from my phone onto the internet?
<lovesegfault> talyz: Awesome work on the home bind mounts!
drakonis has quit [Quit: WeeChat 2.8]
cjpbirkbeck has joined #nixos-chat
<energizer> if you're gonna do home bind mounts, is there any reason to create a home dataset?
FRidh has joined #nixos-chat
cole-h has quit [Quit: Goodbye]
<lovesegfault> energizer: Yes
<energizer> lovesegfault: explain?
<lovesegfault> You may want to backup machine state and home dir separately
<lovesegfault> in other words: You may want to split state across a few different datasets
<energizer> ok
<energizer> lovesegfault: what is /etc/nix/id_rsa for?
<ldlework> A friend of mine got access to some serious academic GPU resources. I've had this scifi flash fiction corpus I scraped sitting around for a year. He's agreed to produce GPT-2 model trained on it :)
<energizer> lol
<energizer> how much data ldlework?
<ldlework> 9 megs, which is actually quite a lot for fine-tuning
<ldlework> AI Dungeon's fine-tuning corpus was of similar size
<ldlework> So I am actually expecting something not-completely-worthless
<ldlework> "He pulled another bone from his bag and he saw that it weighed about five ounces. He couldn't help but smile; what could be better than that? It was a bone that seemed to connect his body to a different space."
<energizer> you generated that?
<ldlework> yeah
<energizer> cool
<lovesegfault> energizer: I dunno
<lovesegfault> I don't have that
<energizer> it's in the readme
<lovesegfault> That's from talyz's setup
cjpbirkbeck has quit [Quit: cjpbirkbeck]
tilpner has joined #nixos-chat
rardiol has quit [Ping timeout: 258 seconds]
parsley936 has joined #nixos-chat
EatThem has joined #nixos-chat
<eyJhb> Someone are going all-in to break into my Facebook, email acconts etc. at the moment
<eyJhb> THis is the second reset email I have gotten
__monty__ has joined #nixos-chat
FRidh has quit [Quit: Konversation terminated!]
<Valodim> gchristensen: now that your "erase your darlings" post sparked this whole thing, perhaps update the blog and add a link to the impermanence repo?
<Valodim> s/and add/with
<manveru> does anyone know a JSON diff tool for CLI use?
EatThem has quit [Quit: Quit]
<manveru> what's one more ghc...
<manveru> thanks, wasn't quite what i had in mind, but it's still better than doing it with normal diff
waleee-cl has joined #nixos-chat
neeasade has joined #nixos-chat
hax404 has quit [Remote host closed the connection]
hax404 has joined #nixos-chat
NinjaTrappeur has quit [Quit: WeeChat 2.8]
NinjaTrappeur has joined #nixos-chat
<joepie91> I should package https://github.com/spieglt/whatfiles some time
<joepie91> looks useful for debugging other nixpkgs packages
<manveru> hm
hax404 has quit [Quit: WeeChat 2.7.1]
hax404 has joined #nixos-chat
<manveru> `strace -f -e trace=file` does pretty much the same... but i guess that would be a bit nicer output
<srk> you can use opensnoop from bcc to do system-wide tracing using ebpf
<srk> heh, didn't occur to me yesterday that I can use that instead of for {0..10000}; ls -l /dev/shm >> ..
hax404 has quit [Quit: WeeChat 2.7.1]
hax404 has joined #nixos-chat
EatThem has joined #nixos-chat
rardiol has joined #nixos-chat
<sphalerite> joepie91 manveru: I usually use opensnoop (from bcc) if I want to do that — it doesn't involve ptrace, I think it doesn't affect the speed of the process much (though I haven't measured)
parsley936 has quit [Remote host closed the connection]
<pie_> good to know about opensnoop, pretty sure i wanted this for something
parsley936 has joined #nixos-chat
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 256 seconds]
rajivr has quit [Quit: Connection closed for inactivity]
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 272 seconds]
EatThem has quit [Ping timeout: 256 seconds]
<bqv> trying to convince my partner of the merits of custom domain email
<bqv> no dice :(
<Taneb> bqv@nodi.ce
<bqv> :D
<bqv> aw, ce isn't a TLD
<joepie91> just save up and bribe ICANN to give you the .dice TLD
<joepie91> note: side-effects may include perpetual harassment by people from the gambling industry
<pie_> just tell them to go to no.dice
<joepie91> lol!
<joepie91> hadn't even realized that one <.<
drakonis has joined #nixos-chat
FRidh has joined #nixos-chat
<eyJhb> Any good way to check if there is a active DHCP server giving out leases?
<eyJhb> ,locate bin dhclient
<{^_^}> Found in packages: dhcp
waleee-cl has quit [Quit: Connection closed for inactivity]
cole-h has joined #nixos-chat
<monsieurp> anyone's read this news?
<Valodim> is that really news?
<bqv> eyJhb: it'd be nice if there was an option to put dhcp{,cd} in systemPackages
<bqv> cause normally i have to go digging for it manually in /nix/store if i need it
<bqv> hardly ideal
<MichaelRaskin> bqv: why not install dhcpcd package?
<bqv> i just have, it's just also not idea, because the package is already used, it's just not global, so if i override one it doesn't override the other
Cache has joined #nixos-chat
Cache has quit [Remote host closed the connection]
<pie_> slack link broken? https://talonvoice.com/
<energizer> closed source
<energizer> see https://caster.readthedocs.io/en/latest/ for open source
<talyz> lovesegfault: thanks! :)
<pie_> energizer: î know its close
<pie_> d
<pie_> didnt know about caster
<talyz> energizer: the id_rsa is for remote builds, but if that's confusing, we could remove it
<energizer> talyz: maybe it'd be good to start with a document that mentions what each file is
<energizer> and that can eventually be converted into options
<pie_> energizer: im assuming talon is higher quality?
<energizer> pie_: yes
<energizer> another good option is aenea which is open source, but relies on running dragon in a windows vm for the speech-to-text
<lovesegfault> talyz: btw I think #3 is ready for a last look
<talyz> energizer: well, they're just examples and not really meant to apply to everyone
<talyz> energizer: but yeah, you opened an issue for that, right? It sounds like an interesting idea
<energizer> talyz: i'm in favor of standardizing semantics
<energizer> yes
<talyz> lovesegfault: okay! :)
<eyJhb> Anything good happening in the repo?
aleph- is now known as Church-
<lovesegfault> eyJhb: Lots
<eyJhb> 26 comments?! Come on :D
<lovesegfault> I've been working on making the NixOS module more flexible (ability to symlink anywhere and bind mount files and dirs)
<lovesegfault> talyz: has been working on making the home-manager module more powerful giving it bind mounts
<lovesegfault> And I really want to see this happen: https://github.com/nix-community/impermanence/issues/1#issuecomment-641441558
<eyJhb> *sigh* running kexec at the top of the hour is a bad idea...
<eyJhb> Ahh :D
<eyJhb> Sounds nice !
<eyJhb> Just be carefull with not overengineering it
<lovesegfault> I've been busy with this though https://github.com/lovesegfault/lange
<lovesegfault> Up to the reader to try it out and find out what it does :P
<lovesegfault> instructions: `nix build`, `./result/bin/lange rust` `./result/bin/lange rust bash`
<energizer> it's a project template system like cookiecutter?
<drakonis> hm
<drakonis> templates huh
<drakonis> excitement abounds
<drakonis> didnt i see a pr that added the ability to generate templates on nixpkgs?
<drakonis> as a replacement for nixos-generate-config and other things?
<Valodim> impermanence folks: how do you typically move stuff into persistent storage? cp to persistent, and then switch to a config that deals with it?
<eyJhb> Valodim: more like mv
<eyJhb> But yes
<Valodim> hmm
<eyJhb> mv ~/.something /state/home
<eyJhb> Edit config, switch
<Valodim> does impermanence have protections against overriding anything, like home-manager does?
<eyJhb> It cannot override anything
<eyJhb> It does symlink and bind mounts
<eyJhb> If there is anything it fails
<drakonis> i wanna bind mount the store instead of symlinking
<drakonis> produce a system by bind mounting everything
<Valodim> eyJhb: thanks
<eyJhb> drakonis: filesystems :p
<eyJhb> My store is bind mounted
<drakonis> i mean
<drakonis> produce my system purely through bind mounting everything
<eyJhb> Ah
<drakonis> how much of a performance penalty does it yield
<eyJhb> That sounds like lovesegfault's job :p
<eyJhb> No clue
<energizer> i think drakonis meant bind mounting the contents of the store into their target locations, not the store itself
<eyJhb> I would wonder if there is a limit to number of bind mounts
<drakonis> it appears that there is no hard limit
<drakonis> there's some caveats it seems
FRidh has quit [Quit: Konversation terminated!]
<eyJhb> Like what drakonis ?
<drakonis> gotta do the bind mounts in the correct order
<drakonis> nothing that cant be dealt with
<energizer> nix is good at ordering
<samueldr> :< what kind of name is it for a library, or tool... I have to figure out what is `dependency("check")` in a meson build
<samueldr> nix-locate check.pc -> check.out /nix/store/96fiv5vnhfacfca2x7rwgm7pgikl1lfs-check-0.14.0/lib/pkgconfig/check.pc
<samueldr> so it is named check...
<samueldr> > pkgs.check.meta.description
<{^_^}> "Unit testing framework for C"
<samueldr> I'll make a new shell, name it shell, with a new gui toolkit, calling it toolkit, and a new web browser, named browser
<samueldr> (luckily it was more trivial than a quick google search led me to believe)
waleee-cl has joined #nixos-chat
<MichaelRaskin> samueldr: just make sure you do not call the toolkit «GUI Toolkit», or people might start abbreviating it to a three-letter acronym
<bqv> graphical interface toolkit?
<samueldr> MichaelRaskin: nah, GTk is only a subsystem of "Toolkit", unrelated to GTK
<MichaelRaskin> bqv: also an option!
<colemickens> Is "nix-config" fairly widespread as a repo name? I'm thinking of renaming mine. Maybe there's an awesome-nixos that tracks user config repos?
<__monty__> It's the most common name I've seen.
<samueldr> or nixos-config
<samueldr> unless you're configuring nix :)
tilpner_ has joined #nixos-chat
tilpner has quit [Ping timeout: 264 seconds]
tilpner_ is now known as tilpner
<colemickens> ccc cole's cool config
<energizer> colemickens: i see a lot of different names https://github.com/search?p=3&q=hardware-configuration.nix&type=Code
<pie_> energizer: so any idea about getting on that talon slack
<energizer> pie_: what's the problem?
<pie_> energizer: it tells me the link isnt valid anymore?
<energizer> pie_: what link?
<pie_> i go to https://talonvoice.com and click Join the Slack for help or more info
<energizer> clear your cookies?
<energizer> and cache
__monty__ has quit [Quit: leaving]
<pie_> thats dumb
<energizer> did it work?
<pie_> wow it worked in a private window
<pie_> wtf
* pie_ throws imaginary books at wall
<pie_> this is soo stupid
<energizer> might wanna talk with grahamc about his setup as well
<energizer> iirc he uses aenea
<pie_> oh?
<pie_> huh
<energizer> there's a lot of community around dragonfly,caster,aenea; talon is just one guy
<colemickens> wow, flashes of nostalgia of dragon naturally speaking
<energizer> (that's not a value judgement btw, lots of good things are made by one person, lots of good things are made by a community)
<cole-h> colemickens: Mine is nixos-config :P
<pie_> just found 20:03 <gchristensen> I didn't feel comfortable with Talon because it is closed source, listens to everything I say, has the ability type and move my mouse, and the point that really caused it to be a problem for me: doesn't cost any money. I just can't trust that.
<pie_> well, looking at his patreon he basically has a salary at this point
<bqv> Talon is my android twitter client
<pie_> aaannd apparenrly its already packaged for nixos theyve just been pming stuff around because private beta
rajivr has joined #nixos-chat
<gchristensen> pie_: how can you tell he has a salary? (how much?)
<gchristensen> ah 4600/mo. I think he lives in CA, so probably covers rent
<joepie91> heh
<pie_> pff
<gchristensen> frankly I just don't want to buy that software from Some Guy
<gchristensen> I etiher want it to be FOSS or I want to pay $300 to a company with a marketing, engineering, etc. departments
<energizer> legal, security,
<gchristensen> yup
<ldlework> in office kitchen
<gchristensen> ideally
<ldlework> :P
<gchristensen> bbl
<pie_> aa
<pie_> aha
<pie_> sidenote, we're still stuck on qt512 right?
<colemickens> yeah, but the qt514 pr is working fine for me
<ldlework> same
<ldlework> got latest rpcs3 version running on it
slack1256 has joined #nixos-chat
<pie_> colemickens: good to know
<pie_> would be nice if it was merged :>
ajs124 has quit [Quit: killed]
das_j has quit [Quit: killed]
das_j has joined #nixos-chat
ajs124 has joined #nixos-chat
das_j has quit [Client Quit]
ajs124 has quit [Client Quit]
parsley936 has quit [Remote host closed the connection]