gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
Synthetica has quit [Quit: Connection closed for inactivity]
numkem has quit [Quit: WeeChat 2.5]
waleee-cl has quit [Quit: Connection closed for inactivity]
endformationage has quit [Ping timeout: 268 seconds]
drakonis has quit [Ping timeout: 276 seconds]
vesper11 has quit [Ping timeout: 250 seconds]
vesper11 has joined #nixos-chat
andi- has quit [Remote host closed the connection]
andi- has joined #nixos-chat
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
evanjs has quit [Client Quit]
evanjs has joined #nixos-chat
evanjs has quit [Ping timeout: 244 seconds]
evanjs has joined #nixos-chat
endformationage has joined #nixos-chat
evanjs has quit [Ping timeout: 245 seconds]
evanjs has joined #nixos-chat
endformationage has quit [Ping timeout: 264 seconds]
<steveeJ> I'm thoroughly confused by this code: https://cgit.krebsco.de/krops/tree/lib/default.nix is body a special varible? where is the "in" part of the let statement?
<sphalerite> steveeJ: yes
<sphalerite> > let { body = 5 }
<{^_^}> error: syntax error, unexpected '}', expecting ';', at (string):263:16
<sphalerite> > let { body = 5; }
<{^_^}> 5
<sphalerite> it's weird legacy syntax and you probably don't want to use it.
<sphalerite> let ({body = 5;})
<sphalerite> >let ({body = 5;})
<sphalerite> > let ({body = 5;})
<{^_^}> error: syntax error, unexpected '(', at (string):263:5
<steveeJ> | let { body = lib; lib =5; }
<steveeJ> oh, it only looks like a pipe in my irc client :D
<steveeJ> > let { body = lib; lib =5; }
<{^_^}> 5
<steveeJ> so it needs an additional indirection
<steveeJ> > let { body = a; a =5; }
<{^_^}> 5
<steveeJ> > let { body = 5; }
<{^_^}> 5
<steveeJ> or not. I think it didn't like sphalerite's braces
<sphalerite> yeah, I wanted to check if you can put an expression that evaluates to a set
<sphalerite> but no, it syntactically requires it to be a set directly
<sphalerite> > let { body = a + b; a = 5; b = 6;
<{^_^}> error: syntax error, unexpected ')', at (string):264:1
<sphalerite> > let { body = a + b; a = 5; b = 6; }
<{^_^}> 11
<steveeJ> so it needs to be top-level in the file?
<sphalerite> no
<sphalerite> > let a = 5; in let {body = a;}
<sphalerite> rate limit? \o/
<steveeJ> > let { body = { let { body = 5; } } }
<{^_^}> error: syntax error, unexpected LET, at (string):263:16
<sphalerite> > let { body = let {body = 5;}; }
<{^_^}> 5
<steveeJ> I haven't seen this syntax before I read through the krops code
<sphalerite> good :p
<steveeJ> the author must be an oldschool nix hacker
<sphalerite> I think it dates back to very early nix
<steveeJ> the code looks pretty advanced (complicated?) in general
Myhlamaeus1 has joined #nixos-chat
Myhlamaeus1 has quit [Remote host closed the connection]
davidtwco has joined #nixos-chat
cransom has quit [Quit: WeeChat 2.4]
Myhlamaeus1 has joined #nixos-chat
Myhlamaeus1 has quit [Remote host closed the connection]
Myhlamaeus1 has joined #nixos-chat
<andi-> o.O
<eyJhb> infinisil: `The funny thing is that at least under Linux this probably involves less ram than most gui apps`
<eyJhb> Somewhat agree
<eyJhb> Really considering if I should rewrite my AKU Map in Elm (https://gitlab.com/eyJhb/aku-aalborg-map)
<andi-> not so sure I agree my terminal emulator has <100K and that is graphical
<sphalerite> U-Boot 2009.08-00794-g5fa48ba-dirty-svn (10月 08 2015 - 12:40:07) D:
<sphalerite> me: oh no.
<eyJhb> andi-: _most_ :p I was more thinking it was related to all these chatting apps, e.g. discord, slack, etc.
<eyJhb> sphalerite: what you doing?
<sphalerite> eyJhb: fiddling with my e-reader
<eyJhb> What your trying to do with it?
<sphalerite> eyJhb: although, the manufacturer was kind enough to (1) provide handy uart holes on the board so I don't have to do any soldering, and (2) put everything on a micro-SD card embedded in the case rather than an eMMC or SPI flash or something, so I can easily swap it out
<sphalerite> eyJhb: ideally, get a modern kernel booting on it. Then… idk, I'll see
<sphalerite> eyJhb: maybe make it into a fancy e-ink wall information panel
<eyJhb> Ah, always fun when you can fiddle with uart! Good luck, and try not to brick it ;) :p
<sphalerite> well that's the nice thing about the SD card
<sphalerite> I can just back it up using my laptop :D
<sphalerite> and even swap it out for a completely different one!
<eyJhb> sphalerite: is the format kinda like RPi?
* sphalerit uploaded an image: IMG_20190907_123116.jpg (2543KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/vKpTamTjbJtBqgIfjqcgWTtq >
<sphalerite> eyJhb: ^ not really
<sphalerite> um. That has the serial number in it. Oops.
<sphalerite> Ah well, not the end of the world I guess?
jtojnar has joined #nixos-chat
jtojnar has quit [Ping timeout: 244 seconds]
jtojnar_ has joined #nixos-chat
obadz has joined #nixos-chat
<eyJhb> sphalerite: mine now! ;)
<sphalerite> lol
<eyJhb> I was thinking the SDCard format :D Like, fat32 and ext4 :D
<eyJhb> Eh, I don't think you can do much with that serial.. But some people use it for "SE" (Social Engineering), which is just... Bad scamming
<sphalerite> eyJhb: ooh. No, not really. It's just got a u-boot and a kernel in non-partitioned space and then 2 ext4 partitions (system and recovery) and a fat partition (for the ebooks)
<eyJhb> sphalerite: sounds "easy" enough. Have you been working on it for a long time, or just started?
<sphalerite> eyJhb: just started
<sphalerite> eyJhb: but an ancient u-boot like that won't be much fun, and I don't know enough about the hardware (or about porting u-boot) to port a modern u-boot to it
<eyJhb> Well, that is somewhat part of the exercise, isn't it? But yeah, depends on how much time one has... And generally, that is _not much_
obadz has quit [Quit: WeeChat 2.5]
obadz has joined #nixos-chat
<sphalerite> :)
<eyJhb> I did some a year ago I think with a "TDC Homebox 3" (TDC being a ISP). Considered changing some internal components to do logging, so I could get the remote password they used to remotely auth to the router
<eyJhb> Oh! Does anybody have a good tool for testing requests/sec to a HTTP service? I know there is some obivous one
<averell> ab (apache bench)
<eyJhb> ,locate bin ab
<{^_^}> Found in packages: apacheHttpd
<eyJhb> Aaaand I have concurrency issues
<eyJhb> Damn
<eyJhb> Thanks averell
<sphalerite> blargh. My new smart sockets, same model as I already had, have fixed firmware so I can't reflash them OTA :(
<eyJhb> Apparantly I cannot do MySQL anymore
<eyJhb> So, manually flashing them sphalerite ?
<sphalerite> eyJhb: yeah, and ripping the cases apart to do so :(
<sphalerite> eyJhb: the glued-shut cases which are AFAIK quite impossible to open without damaging them
<eyJhb> Can anybody see why this is invalid? https://pastebin.com/FyA7Z5Bt
<eyJhb> Each create table work for itself, when I try to validate it...
<eyJhb> sphalerite: That is why I both hate and love glue... :/
<sphalerite> eyJhb: IF NOT EXISTS? :p
<eyJhb> I am getting syntax error :/ So that should't be it. OR am I missing something?
<sphalerite> which kind of SQL?
<sphalerite> is `value` or `type` maybe a keyword?
<sphalerite> eyJhb: ^
<averell> trailing , maybe
endformationage has joined #nixos-chat
vika_nezrimaya has joined #nixos-chat
andi- has quit [Remote host closed the connection]
andi- has joined #nixos-chat
vika_nezrimaya has quit [Ping timeout: 245 seconds]
Myhlamaeus1 has quit [Read error: Connection reset by peer]
Myhlamaeus1 has joined #nixos-chat
Myhlamaeus1 has quit [Quit: WeeChat 2.4]
Myhlamaeus has joined #nixos-chat
evanjs is now known as Guest71254
evanjs has joined #nixos-chat
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
<evanjs> I need to fix these random shutdowns... ZNC gets pretty angry every time 😒
<eyJhb> sphalerite: Also what I figured. I might have to try and do ` around everything, just sucks that is how you do multiline in Golang :p
<eyJhb> averell: also maybe yeah.. :/ But the trailing comma is a test, so shouldn't be it
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
evanjs has quit [Client Quit]
evanjs has joined #nixos-chat
ContainsLiquid has quit [Quit: ContainsLiquid]
ContainsLiquid has joined #nixos-chat
<eyJhb> ANybody knows of a simple solution to track page visits? Currently hosting a site on GitlabPages, and don't want to include Google Analytics, but sometime more simple and less Google
jackdk has quit [Ping timeout: 245 seconds]
jackdk has joined #nixos-chat
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
tokudan has quit [Quit: ZNC 1.7.3 - https://znc.in]
tokudan has joined #nixos-chat
tokudan has quit [Remote host closed the connection]
tokudan has joined #nixos-chat
<eyJhb> Hmm, the build in HTTP Server in Go is fairly good, simple page - 13.509,17 req/s, apache 3895.97 req/s.
tokudan has quit [Client Quit]
tokudan has joined #nixos-chat
tokudan has quit [Remote host closed the connection]
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
tokudan has joined #nixos-chat
evanjs has joined #nixos-chat
tokudan has quit [Client Quit]
tokudan has joined #nixos-chat
drakonis has joined #nixos-chat
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
cransom has joined #nixos-chat
Myhlamaeus1 has joined #nixos-chat
Myhlamaeus1 has quit [Remote host closed the connection]
Myhlamaeus has quit [Ping timeout: 244 seconds]
<evanjs> I'm getting exit_boot() failed and efi_main() failed every few startups; is this just a potentially bad install? (eg on legacy when I should've used UEFI, etc)
<evanjs> Like I've been running NixOS fine for months, but every few times I reboot / power on, I'll get those messages, and need to reboot up to a few more times
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
evanjs has quit [*.net *.split]
evanjs has joined #nixos-chat
<sphalerite> evanjs: that's more of a question for #nixos, but I'd say that doesn't sound normal. That could be a firmware bug (check if your manufacturer has published any updates)
<sphalerite> evanjs: has this occurred across different kernel versions?
<sphalerite> (highlight me in #nixos with your answer ;) )
Myhlamaeus1 has joined #nixos-chat
<ashkitten> ffmpeg includes libdav1d now, so i got to finally pit that against my awful torture test. it gets much farther than libaom before it starts dropping frames like wild, which is great
<ashkitten> hmm
<ashkitten> some of it might've been an issue with the encoder
<ashkitten> partially
<ashkitten> gonna start libaom-av1 encoding on my server. it was on my desktop last time, which i could only really let run for about a week
waleee-cl has joined #nixos-chat
Church- has quit [Quit: WeeChat 1.6]
aleph- has joined #nixos-chat
<infinisil> Okay what the hell is this black magic: sudo rm -rf var -> rm: cannot remove 'var/empty': Operation not permitted
<infinisil> I AM ROOT
<sphalerite> infinisil: immutable attr
<sphalerite> infinisil: man chattr
<drakonis> infinisil: chattr -i file
<infinisil> I was just looking into that
<drakonis> i've run into it in the past
<drakonis> its ssh at work it seems
<drakonis> what are you nuking right now?
<sphalerite> drakonis: no, nixos makes /var/empty immutable
<infinisil> Yeah that was it indeed: lsattr . ----i--------------- ./empty
<infinisil> Thanks ^^
<drakonis> its the only directory you can't actually nuke
<drakonis> sphalerite: why?
<sphalerite> drakonis: so that it definitely remains empty
<drakonis> idgi
<sphalerite> it's used for a number of purposes
<samueldr> +i makes the directory immutable
<drakonis> yes i'm aware
<samueldr> (iirc)
<drakonis> but its actually not empty on other distros
<drakonis> sshd goes there
<samueldr> does it create files?
<samueldr> because if it doesn't then it should still be empty
<infinisil> Whaat
<samueldr> it's /var/empty, not /var/unused
<drakonis> it has a directory in there
<drakonis> its /var/empty/sshd but it is empty inside
<infinisil> Then whatever made that is broken
<infinisil> Or got a wrong path at some point
<sphalerite> ...
<sphalerite> :|
<drakonis> this is fedora i'm looking at
<infinisil> Wouldn't have happened with +i :)
<drakonis> its created by sshd
<samueldr> I guess the fedora/redhats are weird in having stuff in sshd, I've never used that lineage of distros
<samueldr> stuff in /var/empty*
<drakonis> again, its a directory owned by sshd
<drakonis> they don't have anything inside that directory, but it exists
<drakonis> a directory that sshd created that should be owned by root and it is empty even on fedora
<evanjs> in case anybody want's to make sure I'm not being dumb. https://github.com/openrazer/openrazer.github.io/pull/9
<{^_^}> openrazer/openrazer.github.io#9 (by evanjs, 1 minute ago, open): Add documentation for NixOS support
<evanjs> ashkitten: ^ ?
<ashkitten> evanjs: ty, btw i'm not sure if i'm going to keep this. it's not suiting my needs, i think
<evanjs> ashkitten: mapping keys, or?
<ashkitten> just not what i wanted out of it
<evanjs> Ohhh the service or the Orbweaver?
<ashkitten> orbweaver
<evanjs> Okay that makes more sense. I kept mine just in case I find games that work well with it, but I'd definitely say it's not for _all_ games.
<evanjs> bigger thing for me is that like all my peripherals are razer :P
jtojnar_ has quit [Quit: jtojnar_]
jtojnar has joined #nixos-chat
<avn> drakonis: some distros prefer to use own `empty` for each service, idk if it good or bad (but in this case better to have /var/empty/default then. instead defaulting to /var/empty with subdirs).
<drakonis> i see
pie_ has quit [Quit: pie_]
pie_ has joined #nixos-chat
pie_ has quit [Max SendQ exceeded]
pie_ has joined #nixos-chat
pie_ has quit [Max SendQ exceeded]
pie_ has joined #nixos-chat
pie_ has quit [Max SendQ exceeded]
qyliss has quit [Quit: bye]
qyliss has joined #nixos-chat
<infinisil> Okay so I think I'll have to move away from znapzend, there's just too many issues
<infinisil> This is the most recent one I'm annoyed by: https://github.com/oetiker/znapzend/issues/144
<{^_^}> oetiker/znapzend#144 (by rottegift, 4 years ago, open): How to snapshot SRC frequently and send to DST infrequently?
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
evanjs has quit [Ping timeout: 240 seconds]
evanjs has joined #nixos-chat