gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
wildtrees has quit [Quit: Leaving]
<ashkitten> is it possible to pause a nix build (like send a sigstop to all builders)?
<cole-h> ashkitten: With `pkill`, you can use the `-G` flag to send a signal to all members of the group
<cole-h> Might work, if you specify `-STOP`?
<ashkitten> ah, huh
<ashkitten> ... okay that's weird, firefox gets super laggy if i have my other firefox window on a non-visible workspace
<ashkitten> or just not visible
avn has quit [Ping timeout: 265 seconds]
avn has joined #nixos-chat
<cole-h> > fortune
<{^_^}> "Life is to you a dashing and bold adventure."
drakonis has quit [Quit: WeeChat 2.7.1]
drakonis has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis has quit [Client Quit]
drakonis1 is now known as drakonis
<cole-h> Anybody here familiar with POSIX sh scripting?
<samueldr> no, absolutely nobody
<samueldr> but better ask anyway
<cole-h> lmao
<cole-h> Is there a way to "export" a variable from a function?
<samueldr> they are not local by default, unless you declare them to be, IIRC
<cole-h> Basically, I have a function that gets called on every shell prompt, and I want to detect if the PWD has changed since the last prompt by using a variable e.g. _MY_PWD="${PWD}"
<cole-h> This works as expected in `bash`, but in `bash --posix`, `_MY_PWD` never gets set/is otherwise inaccessible in the shell
<cole-h> Look at all those pretty colors in the GitHub language bar
<infinisil> > fortune
<{^_^}> "If a 'train station' is where a train stops, what's a 'workstation'?"
<infinisil> Hah
abathur has quit [Ping timeout: 256 seconds]
<ashkitten> why does a dependency for network-addresses-vboxnet0.service fail?
<ashkitten> looks like that dependency is sys-subsystem-net-devices-vboxnet0.device... but that seems to be working fine?
waleee-cl has quit [Quit: Connection closed for inactivity]
malSet has joined #nixos-chat
abathur has joined #nixos-chat
<aleph-> Should really set up ldap probably
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
abathur has quit [Ping timeout: 256 seconds]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
drakonis has quit [Ping timeout: 246 seconds]
drakonis has joined #nixos-chat
abathur has joined #nixos-chat
lovesegfault has quit [Quit: WeeChat 2.7.1]
drakonis has quit [Quit: WeeChat 2.7.1]
abathur has quit [Ping timeout: 256 seconds]
cole-h has quit [Ping timeout: 250 seconds]
Jackneill has joined #nixos-chat
jared-w has quit [Ping timeout: 256 seconds]
jackdk has quit [Ping timeout: 256 seconds]
claudiii has quit [Ping timeout: 272 seconds]
cbarrett has quit [Ping timeout: 272 seconds]
claudiii has joined #nixos-chat
nh2 has quit [Ping timeout: 256 seconds]
aria has quit [Ping timeout: 240 seconds]
cbarrett has joined #nixos-chat
jackdk has joined #nixos-chat
jared-w has joined #nixos-chat
aria has joined #nixos-chat
nh2 has joined #nixos-chat
Jackneill has quit [Ping timeout: 250 seconds]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
Jackneill has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<ashkitten> hmmm apparently it's possible to install just the opencl bits of amdgpu-pro and have it work with mesa?
<ashkitten> i should see if i can package that up later
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
__monty__ has joined #nixos-chat
<eyJhb> __monty__: the Xcompose file doesn't seem to work
<__monty__> ¯\_(ツ)_/¯ Then you'll have to figure out why.
<eyJhb> Might be because I include the original ones
<srhb> eyJhb: Some applications also happily ignore .XCompose under certain circumstances.
<srhb> Chrome, eg.
<srhb> If I remember correctly.
<srhb> eyJhb: fwiw `include "%l"\n<Multi_key> <o> <e>: "ø"` -- works here.
<srhb> Err, %L.
<etu> srhb: I assume that the \n should be a newline in the .Xcompose file? Do i need to reload something somehow for things to take effect?
<__monty__> srhb: Does that mean chrome intentionally interferes with X?
<srhb> etu: Yeah, trying to avoid pasting multiline, but failing... :P
<srhb> __monty__: I don't know the details. Something like getting input via some method that does not respect .XCompose or something.
<__monty__> Does it still respect the system compose key files?
<eyJhb> Fixed in a realease
<eyJhb> That is also what I currently have it my Xcompose file :(
<__monty__> How does a project this big not fix something like this for years? : /
<eyJhb> srhb: https://termbin.com/t1zb ageed?
<__monty__> Another reason to use firefox? : >
<eyJhb> œ <---
<etu> Now I have an .XCompose that I'm happy with
<etu> I should add that to my nix config
<eyJhb> AH
<eyJhb> Found the issue
<eyJhb> Testing now
<eyJhb> Thanks all, I had written .Xcompose instead of .XCompose ....
<__monty__> : )
<etu> eyJhb: yeah, I did so as well at first
<eyJhb> etu: how many years have you lived without this?
<etu> eyJhb: A couple of weeks or so. I could do ä like compose "a, and ö like "o
<eyJhb> etu: how is it normally written in Swedish, e.g. æ, ø, å was written as ae, oe and aa
<eyJhb> 6.25 WPM
<etu> eyJhb: I don't understand your question. They are normally written åäö
waleee-cl has joined #nixos-chat
<eyJhb> etu: so there is no history of writing it in any other way?
<etu> eyJhb: Seems like å was written aa like 600 years ago, and 300 years ago ae was changed to ä. So I guess yes.
<averell> oh no, all the cool people are posting their jitsi instances, and there's no nixos service
<__monty__> I figure gchristensen must be hiding one! : O
<gchristensen> I just assume meet.jit.si is already using NixOS
<__monty__> >.<
<gchristensen> :P
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<sphalerite> averell: where? :D
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
abathur has joined #nixos-chat
neeasade has quit [Remote host closed the connection]
abathur has quit [Quit: abathur]
abathur has joined #nixos-chat
<averell> ah, just my twitter bubble i guess :)
veske has joined #nixos-chat
drakonis has joined #nixos-chat
<__monty__> Anyone have a nice purescript setup?
drakonis has quit [Ping timeout: 246 seconds]
<waleee-cl> have you seen justinwoo's? https://github.com/justinwoo/easy-purescript-nix
<__monty__> I'm looking at that yeah.
drakonis has joined #nixos-chat
<__monty__> waleee-cl: So, if I understand correctly that's a way to get purs and spago but it's not like the haskell infra in that you can get purescript packages using it?
<waleee-cl> __monty__: you mean as in ghc__.haskellPackages.servant or the like? No
<waleee-cl> you can get nix-expression as I guess you have seen if you use spago2nix or the other tools
<gchristensen> woohoo, my Vault proxy is working properly
<gchristensen> the only problem now is I have to tap it approximately 30 times to start Vault
<andi-> which sounds a bit scary as every press of the button should have a single purpose. It becomes very casual just to hit that button often in your case :)
<gchristensen> yes
<gchristensen> I'm going to make it 1 tap to unlock by creating a sort of "sudo" mode, where a process can indicate it is going to run several things, and that process's calls will only need 1 tap
<gchristensen> andi-: but what I have is not bad for about 2h of work
<andi-> agreed
<gchristensen> 1h of which was figuring out how ta create an HTTPS client with Hyper.
<andi-> reqwest is the answer (usually on SO)
<gchristensen> I don't want my program to actually examine message bodies
<gchristensen> so I'm using Hyper to examine the URL being requested, and then connecting upstream and bridging the two connections
<andi-> kernel tls and just connecting them? :)
<andi-> (not sure if that actually works)
<gchristensen> I do need to examine some of the transfer
<andi-> IIRC that should be possible, I'll read into that later. In a call now.
<gchristensen> also can't wait for heartbleed, Kernel edition
* andi- 🤣
<drakonis> what's the goods?
<gchristensen> hm? :)
<drakonis> what y'all agreed on yesterday
<drakonis> and heartbleed kernel edition eh?
<gchristensen> doing TLS in the kernel just sounds not good
<drakonis> im sure they cant hear you over the amount of packets being done in kernel
<drakonis> we'll see whether they'll change that tune once something bad happens
<gchristensen> heh
veske has quit [Quit: This computer has gone to sleep]
cole-h has joined #nixos-chat
endformationage has joined #nixos-chat
<andi-> gchristensen: IIRC it only does the symmetric part in the kernel
<andi-> aka sendfile to TLS socket
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
{^_^} has quit [Remote host closed the connection]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
wildtrees has joined #nixos-chat
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
neeasade has joined #nixos-chat
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
lovesegfault has joined #nixos-chat
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<cole-h> re my POSIX sh question yesterday: solution is to create a tempfile with `export _MY_PWD=.....` and source said file in the function. Hacky, but I think that's the best that can be done in POSIX
<cole-h> (e.g. `echo export _MY_PWD="${PWD}" > /tmp/somefile`)
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<__monty__> cole-h: What was the question?
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<cole-h> Pasting: Basically, I have a function that gets called on every shell prompt, and I want to detect if the PWD has changed since the last prompt by using a variable e.g. _MY_PWD="${PWD}"
malSet has joined #nixos-chat
<cole-h> cont: This works as expected in `bash`, but in `bash --posix`, `_MY_PWD` never gets set/is otherwise inaccessible in the shell
malSet has quit [Read error: Connection reset by peer]
<cole-h> Basically, making a variable available outside a function scope in POSIX sh
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<cole-h> This is what I'm doing it for: https://github.com/ajeetdsouza/zoxide/pull/43
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<gchristensen> hrm why didn't my ban work
<cole-h> 👀
<cole-h> `*!...@...` vs `...!*@...`, maybe?
<cole-h> s/`...!*@...`/`...!*@*`
<gchristensen> lol
<cole-h> Super readable, right?
<cole-h> x)
<gchristensen> what is this, perl?
<gchristensen> s/p/#p/
<samueldr> nick!ident@host
<samueldr> ident was intended to be non-spoofable value given by the host
<samueldr> so you'd know foo!grahamc@some.host would be the grahamc user from that system
<samueldr> obviously that's not how the internet evolved :)
<gchristensen> yeah but shoudln't *!malSet@cpe-173-89-212-155.columbus.res.rr.com ban malSet (~malSet@cpe-173-89-212-155.columbus.res.rr.com) ?
<samueldr> ~malSet AFAICT
<samueldr> you used !malSet@ and not !~malSet@
<__monty__> cole-h: Is the problem the hook is run in a subshell? Wouldn't storing just the path and then reading the value be slightly safer than sourcing?
<gchristensen> womp womp
<cole-h> Why are they getting a temp ban? Because of spammy rejoins?
<cole-h> __monty__: How would I
<cole-h> store just the path
<cole-h> Oh, you mean just echo the path to the file
<cole-h> __monty__: Great idea, thanks. Do you know of a POSIX way to read a file into a variable? Or do I have to rely on `var="$(cat file)"`?
<gchristensen> that is pretty much it
<cole-h> Oh well
<cole-h> When you fat finger your GPG password 3 times so git wipes out the commit message x)
<gchristensen> it isn't in .git/COMMIT_MSG or something?
<cole-h> Well, I re-executed `git commit -v` and it wasn't there :'(
<gchristensen> ack.
lovesegfault has quit [Quit: WeeChat 2.7.1]
<cole-h> Yep, I found that too. POSIX sh still requires a `cat` invocation.
<cole-h> Thanks, though.
<julm> fyi, depending on what you want to do you can also do something like: while IFS= read line; do [do something with $line]; done <input.file
<julm> hmm, read -r to avoid backslash escaping
lovesegfault has joined #nixos-chat
<cole-h> Doesn't appear to work in mrsh (maybe a bug on emersion's end), which is the only reason I didn't go that route
drakonis has quit [Ping timeout: 246 seconds]
<julm> :\
drakonis has joined #nixos-chat
<eyJhb> I might just have been the worst IT support ever...
<samueldr> did you try turning it on and off again?
<eyJhb> using dvorak... took forever for me
<samueldr> (deliberataly switched them around)
<eyJhb> password expired :p
<__monty__> samueldr: Surely that doesn't solve any problems? : >
<samueldr> now it's off, so it probably isn't working!
<eyJhb> I need to put some more time into this. Dvorak just works against me
<gchristensen> you could not bother :P
<eyJhb> I think it is worth it in the long run :D
<gchristensen> (I am not convinced it has useful outcomes)
<infinisil> I want a keyboard layout that changes a bit every day, without telling you what changed
<infinisil> Hm wait, I take that back
<gchristensen> LOL.
<infinisil> But I want a layout that changes over time to optimize the layout for what I type
<infinisil> So e.g. it would move ; closer to the home row when it realizes I'm writing more Nix recently
<infinisil> Things like that, might be neat :P
<cransom> that sounds like insanity.
<Taneb> infinisil: you'd also need hands that change to match
<gchristensen> I love the idea that it'd just screw you up over time
<infinisil> If it realizes I'm typing slower with the change it would probably revert it
<gchristensen> the problem with dvorak is typing is not the hard part of our jobs
* infinisil nods
<aleph-> infinisil: markovkeyboard
<aleph-> shapr in #nixos wrote it
<aleph-> Can probably tweak it some
<__monty__> It's not the hard part but RSI does affect many of us.
<gchristensen> yeah that is why I switched to dvorak
<cransom> i know i type a lot, but it's not 100wpm for 8 hours a day. does anyone have keypress gathering stats tools? seems like it woudl be enlightening (preferably without a keygrabber)
<gchristensen> maybe you can count USB interrupts
<gchristensen> wait.
<cransom> <3 hive mind.
<samueldr> dang, I must have lost quite a few places since the last time I used whatpulse
<cransom> hrm. i'm unstoked about needing a log in for this.
<cransom> what could go wrong with having my keypress data go directly to the cloud...
<samueldr> exactly
<cransom> i could try flipping back to the ergodox. i bet i could have a firmware change to do some background monitoring on press rate without being key specific.
nckx has quit [Ping timeout: 264 seconds]
nckx has joined #nixos-chat
{^_^} has joined #nixos-chat
Jackneill has quit [Ping timeout: 250 seconds]
<colemickens> unprompted 2FA code = get to change some passwords today. joyous.
<gchristensen> where at, colemickens?
<colemickens> The 2fa prompt came from Uber, but it's definitely one of my 2nd-tier, likely-to-be-typed-on-randpm-phone type of password that is probably used in a few other places.
<colemickens> Gaming services and ride share apps, I get logged out frequently and they seem low enough on the totem that I use my old school "secure" password before letting them all be random :P
<__monty__> You could try diceware phrases for those. As long as you come up with a hook they're pretty memorable.
<gchristensen> and use at least 6 words ...
<infinisil> I have a nice PW generator, let me know if you need one, I'll PM you the result ;)
<cole-h> LOL
<__monty__> Well that's up to them, if they're not important services...
<cole-h> I like diceware passwords. I have 5 die sitting on my desk for that exact reason
<__monty__> I once got a set of 30 for free. Consider it a sign that I was meant to use diceware. : )
<cole-h> I'm sure I have more I can use, but I don't think any wordlists use more than 5 digits
<cole-h> And if they do, I just roll one of my previously-rolled die :P
<__monty__> 30 = 6 x 5
<cole-h> Oh, I see. You roll all your words at once
__monty__ has quit [Quit: leaving]
m1cr0m4n has quit [Ping timeout: 268 seconds]
lovesegfault has quit [Quit: WeeChat 2.7.1]
mrCyborg has joined #nixos-chat
mrCyborg has quit [Ping timeout: 246 seconds]