gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
tokudan has joined #nixos-chat
tokudan has quit [Remote host closed the connection]
tokudan has joined #nixos-chat
<samueldr> !
<samueldr> just found out where my missing semi-colons in C were all going
<samueldr> turns out they all found their way at the end of ruby statements
<gchristensen> haha!
<aanderse> samueldr: you do ruby? have you ran into this: https://github.com/NixOS/nixpkgs/issues/78242
<{^_^}> #78242 (by thefloweringash, 4 weeks ago, open): bundler from bundlerEnv.wrappedRuby fails with uninitialized constant Bundler::FeatureFlag
<samueldr> aanderse: wrong ruby
<aanderse> >_<
<samueldr> see, I use mruby, by Yukihiro Matsumoto, and not ruby, from Yukihiro Matsumoto
<samueldr> sorry, that's me lightly trolling you
<samueldr> I've not done much ruby since last year with the nixpkgs stuff
* samueldr looks anyway
<aanderse> samueldr: i wish i got the joke... :\
<samueldr> looks like it's because it's an older bundler?
<samueldr> an, aanderse, simply enough the creator of ruby wrote the main ruby interpreter, and way later wrote another embedded ruby interpreter
<samueldr> ah*
<samueldr> and right now I'm working with mruby rather than ruby
<samueldr> yeah, probably related to the same "big issue" I didn't know how to tackle, our ruby+bundler build is... weirdly not okay
<aanderse> samueldr: ah, ok, i understand. different ruby. :)
<samueldr> on a ruby-using project, last week, I just had to do some hacks I didn't like to get things working again
<samueldr> didn't really have the time to bisect what the actual issue was
<aanderse> i've never written any ruby, but that issue will be a blocker for me upgrading to 20.03 on a box unfortunately :\
<aanderse> i hate when there is stuff i don't have the knowledge to fix :(
drakonis has joined #nixos-chat
<colemickens> maybe someone can reply to the top comment thread
drakonis has quit [Ping timeout: 255 seconds]
<colemickens> In fact there was just a good thread on HN that even showed how to use Nix to get docker container images as output...
<colemickens> Looks like there was a reply already since I looked
drakonis has joined #nixos-chat
drakonis has quit [Quit: WeeChat 2.7]
drakonis has joined #nixos-chat
drakonis has quit [Ping timeout: 252 seconds]
<infinisil> colemickens: (the top comment changes over time btw)
drakonis has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis has quit [Ping timeout: 258 seconds]
drakonis1 has quit [Ping timeout: 255 seconds]
drakonis1 has joined #nixos-chat
drakonis has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-chat
drakonis1 has quit [Ping timeout: 258 seconds]
drakonis1 has joined #nixos-chat
drakonis has quit [Quit: WeeChat 2.7]
drakonis1 is now known as drakonis
waleee-cl has quit [Quit: Connection closed for inactivity]
drakonis has quit [Quit: WeeChat 2.7]
endformationage has quit [Ping timeout: 252 seconds]
eyJhb has quit [Quit: Clever message]
eyJhb has joined #nixos-chat
eyJhb has quit [Client Quit]
cole-h has quit [Ping timeout: 258 seconds]
malSet has quit [Quit: Quit.]
malSet has joined #nixos-chat
colemickens_ has quit [Quit: Connection closed for inactivity]
__monty__ has joined #nixos-chat
eyJhb has joined #nixos-chat
<viric> __monty__: you said that you use microbit somewhere?
<__monty__> viric: Yep.
<__monty__> A coderdojo.
<viric> __monty__: do you program that with NixOS?
<viric> what toolchains in nixpkgs allow programming that?
<__monty__> No, the kids mostly use windows laptops.
<__monty__> They just use makerblock.
<viric> and the teachers don't use the microbit? :)
<__monty__> Not much, just to create some simple starter documentation.
<__monty__> And of course we have to use the same tools because an explanation for how to do it on nixos would be useless for the kids.
waleee-cl has joined #nixos-chat
bram209 has joined #nixos-chat
<bram209> Hi, I am looking for a password manager, any suggestions? what do you all use?
<tilpner> > pass
<{^_^}> "<derivation /nix/store/f3p6m4q5lkffhv8xgh9rdhisrqkppgs7-password-store-1.7.3.drv>"
<__monty__> bram209: Pass is pretty popular, bitwarden and keepass(XC?) are the other floss options I know of.
<bram209> oh nice, just checked the website, liking the simplicity
<bram209> and a popular community it seems, browser extensions are working out well?
colemickens_ has joined #nixos-chat
<Taneb> I wonder what happened to the microbits I had lying around
<Taneb> Probably in a draw somewhere
<eyJhb> What is it? Some buttons, LED, etc.?
<loyon[m]> bram209: there is also a gpg plugin for vim which is very handy for this use
<__monty__> eyJhb: Yes, temp sensor, accelerometer, gyroscope... Accompanied by a simple tool to program it visually. And tons of simple expansion kits.
<__monty__> eyJhb: Consider it arduino simplified so 10yos can play with it.
<eyJhb> They seem expensive
<__monty__> Simplicity/polish is probably the most expensive thing you can buy.
<eyJhb> I couldn't find a place to only buy the microbit, without starter pack..
<eyJhb> __monty__: yeah, but _only_ the board. I have no need for everything
<__monty__> "Everything" is just a cable and a battery holder.
<eyJhb> But less should be cheaper :p I hoped for like
<eyJhb> > 50 DKK
<{^_^}> attempt to call something which is not a function but an integer, at (string):281:1
<__monty__> €20 isn't unreasonable for something like this imo.
<eyJhb> > DKK 50
<{^_^}> "50 DKK = 7.500000 USD"
<FireFly> > DKK
<{^_^}> <LAMBDA>
<FireFly> hmm
<FireFly> curious about its definition :p
<FireFly> I guess hardcoded conversion rate considering the round output
<eyJhb> Hardcoded, basically input*6.67 I guess
<FireFly> makes sense
<FireFly> > SEK 50
<{^_^}> undefined variable 'SEK' at (string):281:1
<eyJhb> Can't remember who defined it
<Taneb> SEK isn't a real currency, imagine paying for things with SEKs
<bram209> @loyo
<FireFly> Taneb: !
<eyJhb> Woo.. 1 DKK => 1.42 SEK
<bram209> loyon[m] that sounds handy indeed :)
<Taneb> ;)
<FireFly> seems 1 USD ~ 10 SEK now... SEK's weak :\
<Taneb> It's not where it is, it's how fast it's going
<etu> > :p DKK
<{^_^}> <LAMBDA>
<etu> meh
<eyJhb> Go go etu !
<tilpner> > :v DKK
<{^_^}> DKK = n: "${toString n} DKK = ${toString (0.15 * n)} USD"
<Taneb> > GBP 10
<{^_^}> undefined variable 'GBP' at (string):281:1
<Taneb> > EUR 10
<{^_^}> undefined variable 'EUR' at (string):281:1
<tilpner> eyJhb: https://wiki.znc.in/Shell
<Taneb> Is it just DKK that exists
<Taneb> > JPY 10
* tilpner retry until ack
<{^_^}> undefined variable 'JPY' at (string):281:1
<eyJhb> tilpner: Thanks, seems OP. But nice to know!
<eyJhb> 0.15, how did I get it to 6.67?...
<Taneb> > 1 / 0.15
<{^_^}> 6.66667
<Taneb> eyJhb: you did the other conversion?
<eyJhb> I guess yeah
<FireFly> > USD 10
<{^_^}> undefined variable 'USD' at (string):281:1
<FireFly> half expected it to convert to DKK
<__monty__> DKK is the only one of these that's defined, I think it was by infinisil, mostly as a joke because eyJhb always talks about stuff in shekels.
<eyJhb> > USD = n: "${toString n} USD = ${toString (6.9 * n)} DKK"
<{^_^}> USD defined
<eyJhb> > USD 7.5
<{^_^}> "7.500000 USD = 51.750000 DKK"
<eyJhb> Well... THis one is updated from the current rate I guess
<eyJhb> __monty__: I switched to EURO at some point
<eyJhb> > USD = n: "${toString n} USD = ${toString (n / 0.15)} DKK"
<{^_^}> USD defined
<eyJhb> > USD 7.5
<{^_^}> "7.500000 USD = 50.000000 DKK"
<eyJhb> Seems better like this
<__monty__> > USD = n: "${toString n} USD = ${toString (n / (DKK 1))} DKK"
<{^_^}> USD defined
<Taneb> __monty__: that's not going to work
<eyJhb> > USD 7.5
<{^_^}> value is a string while a float was expected, at (string):9:44
<__monty__> Oh, duh.
<eyJhb> So, convert string back to float first?
<__monty__> eyJhb: Let's not bother, you'd have to split that string first.
<eyJhb> Soo
<eyJhb> > USD = n: "${toString n} USD = ${toString (n / 0.15)} DKK"
<{^_^}> USD defined
<eyJhb> ?
<eyJhb> > EUR = n: "${toString n} EUR = ${toString (n * 7.5)} DKK"
<{^_^}> EUR defined
<eyJhb> Last one
<eyJhb> > EUR 1
<{^_^}> "1 EUR = 7.500000 DKK"
<eyJhb> Someone tease the Swedes while they are asleep with SEK btw. ;)
psyanticy has joined #nixos-chat
<gchristensen> I wonder if there is an `ssh -o ...` command option to say "yes, I know, the ssh host key changed - please accept it, update it, and move on"
<eyJhb> I would be nice, but I think somewhere they won't add it because of potential abuse
<eyJhb> Also, anyone know if there are some good guidelines for how to build CLI's? Or good reference points
<eyJhb> E.g. mycli <action> [flags] (optional something)
<gchristensen> use an existing library which supports it, and don't do anything that the library makes tricky
<eyJhb> Well, there is no standard for it, in what I am making/using
<eyJhb> As it doesn't really support it. Moved away from spf13/cobra (Go)
bram209 has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
<pie_[bnc]> tell me if you find anything <eyJhb> Also, anyone know if there are some good guidelines for how to build CLI's? Or good reference points
<pie_[bnc]> please collect a bibliography
<pie_[bnc]> also maybe read some of the linux haters handbook and avoid some classic mistakes, idk
<pie_[bnc]> i read some stuff in it but i dont remember
<__monty__> Just write your cli to conform to what optparse-applicative does.
<__monty__> IME it's great.
endformationage has joined #nixos-chat
waleee-cl has joined #nixos-chat
bridge[evilred] has joined #nixos-chat
red[evilred] has joined #nixos-chat
<cransom> gchristensen: if i know i have machines that will change ssh host key often, they get a `UserKnownHostsFile /dev/null` to .ssh/config
<gchristensen> it turns out `ssh-keygen -R`
<hexa-> ssh -O UserKnownHostsFile=/dev/null works the same
<hexa-> will still ask you to confirm the hostkey though iirc
<cransom> (StrictHostKeyChecking is also no)
colemickens_ has quit [Quit: Connection closed for inactivity]
cole-h has joined #nixos-chat
<ashkitten> i hope my cosmo gets here before i move....
Jackneill has quit [Read error: Connection reset by peer]
lassulus has quit [Ping timeout: 255 seconds]
lassulus has joined #nixos-chat
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
veske has joined #nixos-chat
veske has quit [Client Quit]
drakonis has joined #nixos-chat
psyanticy has quit [Quit: Connection closed for inactivity]
<gchristensen> are there any known problems with specifying a /dev/disk/by-id/... path for grub?
<gchristensen> like is there reason / need to use /dev/sdx or a different /dev/disk/xxx/xxx path instead for example
<gchristensen> oops
<samueldr> IIRC grub doesn't really have to know about them, it's stage-1 mounting that cares, no?
<gchristensen> I've seen fishy things with that too
<gchristensen> another system which seems to not be finding its by-id disks, very annoyingly
<samueldr> at which point?
<gchristensen> stage-1, trying to find the disk
<samueldr> (moving to #nixos where the same discussion is going)
<gchristensen> +1
<andi-> Thought: `nixos-report-bug` just like Debian's `reportbug` (https://manpages.debian.org/buster/reportbug/reportbug.1.en.html). I think it would be great if users could just submit a bug from the system they are currently on. That would enable us pulling information about the configuration etc.. (if permission given).. The only issue I see is submitting them to GH is not possible without an
<andi-> account :/
<gchristensen> nixos-report-bug could wrap a nix-shellinvocation to get the github CLI which presumably does a good job guiding them through the authentication process
<andi-> Yeah if they have / want an account.. I still think that shouldn't be considered as granted.
<drakonis> manveru: have you tried using guile for the installer :V?
<manveru> drakonis: yeah
<drakonis> hm, did it work?
<manveru> That was the first version, but partitioning was hell
<manveru> So instead decided to use something premade
<drakonis> sounds like fun.
<gchristensen> andi-: sure, 80/20. the 20% could | mail boogs@nixos.org
<andi-> I actually expect the number to be >20% as I wouldn't want an abitrary server somewhere to have an auth token for my github account
<gchristensen> great point
<andi-> but yeah, details
<gchristensen> | mail andi@nixos.org
<andi-> go ahead :P
<gchristensen> :D
<andi-> I actually like mail. Such a nice queue of work that has to be done
<gchristensen> I can send you more ...
* samueldr sets forwarding up
<andi-> I still don't see how one can't like the idea of a properly sorted and scriptable inbox. I manage to respond to things quicker and better if they just appear in one stream of things that I can classify without having to deal with clicking buttons or websites 🤔
<samueldr> you're assuming I can respond to messages in any shape
<andi-> If you get mails that aren't actionable filter / delete / unsubscribe them
<gchristensen> I don't like the inbox to start with
<sphalerite> I don't like i915 to start with
<gchristensen> lol
<andi-> now we are talking :D
<sphalerite> spent almost an hour trying to recover from a driver reset-loop before giving up and hard resetting
<samueldr> 5.5%
<samueldr> 5.5?*
<sphalerite> ("recover" as in kill anything using it and rmmod)
<sphalerite> samueldr: nope 4.19
<samueldr> :o
<__monty__> Don't you love how gitlab scrolls the page up while typing a comment on an issue?
<__monty__> Feels like an old-timey typewriter.
<sphalerite> I'll get a new laptop in a couple months, I'm sure I won't have any more problems with that
<sphalerite> wow, is coretemp really more than a year back now? time flies when obnoxious people are banned.
<gchristensen> lol
<gchristensen> gr! spent a ton of time doing a reinstall, all to realize I didn't update the data which I wanted to change in the reinstall.
<gchristensen> " IRIX 6.0 does not handle pty permissions correctly so that if Expect attempts to allocate a pty previously used by someone else, it fails. Upgrade to IRIX 6.1. " lol
<__monty__> IRIX is a unix? Does it run nix?
drakonis has quit [Ping timeout: 258 seconds]
Jackneill has joined #nixos-chat
<samueldr> I guess it depends on how posixly uncompliant nix has become, and irix is/was
<gchristensen> anyone happen to know how to have an expect script match on stderr?
<gchristensen> this is how you know I'm in the bad place)
<gchristensen> wait it should be already. what is going on. why is this lying to me.
drakonis has joined #nixos-chat
<andi-> all computers are lying.
Jackneill has quit [Remote host closed the connection]
<gchristensen> +1
<gchristensen> here we go, https://github.com/hashicorp/vault/issues/8416 some good taco bell code in there
<{^_^}> hashicorp/vault#8416 (by grahamc, 1 hour ago, open): Support passing unseal tokens over a file / stdin.
<gchristensen> LnL: ^ :)
<drakonis> wait, are you using vault for secret management on nix?
<gchristensen> I'm ... using vault :P
<LnL> gchristensen: hrm, why are you using expect for this?
<gchristensen> LnL: can't pass a unseal key in over stdin
<LnL> vault operator unseal $key
<gchristensen> yeah but I don't wantthem to be in process lists :(
<LnL> is it that much of a concern? means you already have the unseal keys somewhere on disk or in memory
<gchristensen> a private pipe is much safer I think?
<LnL> but otherwise I'd just post it over the api directly instead
<gchristensen> oh neat
<LnL> the cli is basically just a rest client with a tiny bit of unwrap logic
drakonis1 has joined #nixos-chat
<gchristensen> aria: was I supposed to be sending you stickers?
drakonis has quit [Ping timeout: 258 seconds]
<gchristensen> LnL: cool, that is cool, then I can use curl with --data and pass a pipe in to curl there, more simply
__monty__ has quit [Quit: leaving]
<LnL> yeah, or your favourite http client
<LnL> things like vaultenv are all just using the api directly AFAIK
<gchristensen> bash. /dev/tcp/127.0.0.1/8200
<LnL> no.
<LnL> :p
<gchristensen> LnL++
<{^_^}> LnL's karma got increased to 24
drakonis1 has quit [Quit: WeeChat 2.7.1]
drakonis has joined #nixos-chat
colemickens_ has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-chat
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 260 seconds]
drakonis has quit [Ping timeout: 258 seconds]
drakonis has joined #nixos-chat
* colemickens sees mention of stickers >_>