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]
<infinisil> I'm trying to package my states tax software..
<infinisil> Not looking good unfortunately
<Church-> infinisil: Oof
<Church-> What state?
<Church-> gchristensen: Incidentally I found my needed irc logs. :D This is so much nicer now
<Church-> Go digital pack-ratting
<infinisil> It's using install4j, some java installer generator, and I get an error I could only find a single result for, a stackoverflow post from 2014, and the resolution is for the person who created the install4j installer to switch some option
<Church-> Heh
<Church-> Godspeed infinisil
__monty__ has quit [Quit: leaving]
<infinisil> I might have to give up this year and use my mac instead..
<infinisil> These are last years taxes after all, so I should probably hurry lol
drakonis has quit [Quit: WeeChat 2.6]
<pie__> infinisil: or you could just use nix to fire up a container to run the thing normally?
<pie__> or something
<pie__> nix needs more easy to use escape hatches :V
<pie__> i should make a function that gives you an ubuntu vm or something lol
<pie__> well i think we kind of have some things already but i STILL havent had the time to look into them and i just keep complaining about this
Church- has quit [Quit: WeeChat info:version]
Church- has joined #nixos-chat
lassulus has joined #nixos-chat
<samueldr> :/ I have this train of thought that is not strictly nixos-dev related, but is not off-topic and I'm not sure where to ask/talk about the issue
<pie__> you coooould just ask and maybe people will not be unhappy
<gchristensen> go to -dev, why the heck not
<samueldr> let me write the actual sentence :D
<samueldr> looking into making the best stage-1 possible, it looks like waiting for a device is best done by waiting for it to be available
ar has quit [Ping timeout: 276 seconds]
<samueldr> that there is no "wait until the kernel makes the device available/"
<samueldr> at least, udevadm doesn't look like it can be used that way
<samueldr> it can wait until all events are done on a device
<samueldr> but not before a device is available
<gchristensen> udev can start a systemd service?
<samueldr> so I was wondering if y'all had litterature about that
<samueldr> stage-1 doesn't have systemd yet
<samueldr> and in my particular use case it needs to fit in 8MiB total maximum
<samueldr> though you're right, probably
<gchristensen> udev can also run a program
<samueldr> if the whole stage-1 is built using units, and no scripts, it's likely possible
<gchristensen> oh oh oh samueldr
<gchristensen> create a unix socket at the begining and do a (while read dev; do ... done) < the-socket ; and then have a udev rule which echos device paths to the other end of the socket as they come up.
<samueldr> though interested in litterature about the current best practices, and worst ones too :)
<samueldr> (I'm also searching on my end, but you all know how sometimes search is not good to find)
<samueldr> gchristensen: udevadm monitor is likely better at doing that though
<gchristensen> not sure, that might have a race condition
<samueldr> with?
<gchristensen> udev
<gchristensen> you may not capture all the devices as they come up
<samueldr> "create a unix socket at the beginning"... hmmm, yeah if it exists before udev is started maybe
<pie__> samueldr: could try stackexchange? 'xD
<gchristensen> exactly what I mean
<samueldr> pie__: no
<samueldr> :)
<gchristensen> the trouble with writing an OS is you so many questions can't be answered by S.E.
<samueldr> yeah
<samueldr> or when you find answers, it's the good ol' usual tricks which may or may not be the best
<gchristensen> yea
<samueldr> I want to peek at all the ways it's currently done, to know where to go
<samueldr> I'm also thinking about the way to go (a)sh-free
<samueldr> not for a dislike of it, but to make it more self-contained rather than a set of concatenated snippets
<gchristensen> sounds nice
<samueldr> systemd might still be the ticket, if it can be coerced into a smaller size
<gchristensen> systemd is pretty rockin'
<samueldr> I should "paint" a map of all the work happening in stage-1 to better see what's going on
<gchristensen> get yourself a big whiteboard
<samueldr> (and yeah, I know kirelagin has been working on stage-1 systemd recently)
<samueldr> gchristensen: meh, digital work in inkscape is easier to move and zoom-in-and-out :D
<gchristensen> true
<gchristensen> and copy/paste
<samueldr> stage-1 doesn't do *that* much, but still it's not trivial... especially when encryption comes in
<samueldr> though I'm thinking the minimal system at 8MiB will have to compromise with features
<samueldr> ooh... might be able to increase the minimum requirements by using the cache partition, though that would mean those devices using the cache partition will differ
<samueldr> maybe as an optional "I want all the features" way
waleee-cl has quit [Quit: Connection closed for inactivity]
<pie__> sidenote of usual tricks
<pie__> theres some weird expression i can never remember in python for flattening a list of lists
<pie__> i saw a much better trick recently
<pie__> sum(x, [])
tilpner_ has joined #nixos-chat
tilpner has quit [Remote host closed the connection]
<gchristensen> interesting, 37signals requires that when crossing the US border all employees erase their devices
<gchristensen> ddccontrol can adjust brightness on my monitor :o
<samueldr> check ddcutil
<gchristensen> okay
<samueldr> from memory, it worked better but I don't remember why
<samueldr> with these tools, you can control all settings of the displays
<gchristensen> I can also play with PIP, input sources, degaussing for some reason(???), volume, and power
<gchristensen> so cool
<samueldr> so you could realistically make a "hardware" based redshift
<samueldr> (it's already hardware based in the sense that your gpu is doing the work by "miscalibrating" the colours)
<gchristensen> the major problem I already managed to solve is 100% brightness is blinding at 11pm
<samueldr> hahaha
<samueldr> I have never used displays at full brightness
<samueldr> (except phone under sunlight)
<gchristensen> I didn't realize it was 100%
<samueldr> I don't know how to put it in words... but I'm like 99% sure displays are too bright
<gchristensen> me too
<cransom> when i was at mozilla, and people went to the china data center, they had to take loaner devices that were reinstalled when they got there and wiped when they returned. new ssh keys/passwords for all their accounts, etc.
<samueldr> if they can make phone headphones unusable in public places by forcing maximum sound level limits
<gchristensen> I wonder what would happen if I degaussed this display
<samueldr> they should make maximum display brightness limits
<pie__> the human visual system can be extremely sensitive depending on ambient light conditions
<gchristensen> macOS does a great job of this, I would like something like that
<samueldr> also, I always have a light behind the display that's about as bright visually as the displays
<pie__> there are studies showing (citation needed) that in pitch black conditions you can notice flashes of individual photons
<gchristensen> :o
<pie__> its pretty rad if you think about it
<pie__> errr
<samueldr> (and they're hue light, so I could realistically make fun stuff with ddcutil and sync them to be as bright always)
<pie__> not 100% sure about the individual fotons of if its like 6 or 7
<pie__> *photons
<gchristensen> samueldr: please do this and share your source
<pie__> but thats still cool
<samueldr> probably won't as I'm too lazy
<samueldr> I still have "write my own hue control thing" on my TODO list
<pie__> so thats my hypothesis for why computer screens are always too damn bright :P
<gchristensen> I mean, same
<gchristensen> pie__: yeah, my laptop display literally can't get dim enough
<samueldr> I have a known explanation for bright displays
<samueldr> it's the same reason as to why it's all glossy displays
<samueldr> LOOKS GREAT ON A SHOW FLOOR
<gchristensen> looks pretty?
<pie__> ah..
<samueldr> you know, in that brightly lit store
<pie__> gchristensen: but yeah, in the middle of the night, def agreed
<infinisil> If I may just butt in with something completely unrelated but amazing before I sleep: Tesla's Cybertruck got 250000 preorders in the first 5 days, whoot!
<pie__> infinisil: price?
<cransom> i wonder how many will bail on it or try to resell immediately for heavy markup
<pie__> hm
<pie__> i guess i dont know what the car market looks like
<infinisil> I've heard that if you don't care about how it looks it beats all competiton easily
<infinisil> Very cheap, very strong
<cransom> they call it a truck, but you can't fit a sheet of plywood in back. not a great truck.
<gchristensen> and it can barely take even a rock!
<infinisil> cransom: I think it's pretty much like any other pickup truck no?
<gchristensen> not in the US, anyway
<gchristensen> lol
<gchristensen> looking at this truck makes me miss Texas a little bit
<cransom> even the meagerst of pickups shoudl be able to fit a 4x8 sheet of $material
<gchristensen> wait how small is this thing
<infinisil> Well actually, the dimensions aren't finalized
<infinisil> Elon asked twitter for advice on that i believe
<gchristensen> ah
<infinisil> Smaller without less utility, apparently
<cransom> 'esthetics'. yeeeahhh.
<gchristensen> I'm not in to it
<gchristensen> but that is okay, it doesn't have to be for me
<gchristensen> the base model is like 3x more than I'm inclined to spend on a car
<cransom> yeah, i'll stick to the germans. they make nice cars. maybe it's time for a new wagon this year.
<infinisil> Well it is a car made for people who need something durable and such
<infinisil> And for those kind of cars that price is apparently really good
<gchristensen> I dunno cransom, out here I'm thinking maybe Swedish
<gchristensen> I hear those are moose-tested
<cransom> rubber moose, yeah
<gchristensen> (subaru is very trendy here though)
<gchristensen> yeah!
<cransom> thankfully, no moose in this neck of the woods. i travel back to wisconsin once in a while and i only have to worry about deer.
drakonis has joined #nixos-chat
<averell> but these preorders are a much lower deposit ($100?), and you can still opt out later.
drakonis has quit [Read error: Connection reset by peer]
<averell> infinisil: https://github.com/averelld/nixpkgs/commits/invidious i updated your invidious branch to the latest version and had to do terrible things. but the module works very well.
<gchristensen> nix-shell is so good.
<gchristensen> came across a script from like 3 years ago that I wanted to use, and it just worked perfectly
<pie__> :D <3
<pie__> infinisil: wait are you saying this thing will last and is maintainable?
<pie__> im not going to classify anything packed full of electronics as maintainable
<pie__> then again
<pie__> meh
<gchristensen> I ran 8 pages of handwritten notes through ocrmypdf
<pie__> gchristensen: man how does your brain generate the entropy for that
<pie__> humans have a hard time with randomness
<gchristensen> I am that chaotic good
<samueldr> I'm glad for fNie frorie Fole Sotese
<gchristensen> lol
<gchristensen> is there a handy way to reorder PDF pages?
<samueldr> print them, scan them back in the order you want?
<samueldr> pdfkit I think is a tool for that
<samueldr> BUT
<samueldr> there's like mulitple pdfkit projects :|
<samueldr> or I'm misremembering the name of the tool
<averell> pdftk
<samueldr> ah, pdftk
<gchristensen> ehh I'll just leave it out of order
<averell> actually the nixpkgs version should be replaced with the maintained java fork
endformationage has quit [Ping timeout: 250 seconds]
<pie__> the paid adobe acrobat actually has pdf editing capabilities last time i looked
<worldofpeace> gchristensen: I think you can open firefox, ctrl-p and the gtk print dialog will allow you to print to file. you then can select `pages` and change the order via page numbers `4,2,1,3` etc. then print to file.
<gchristensen> whoa
<pie__> right
<pie__> its crazy what kind of hacks there are in all the little OS variants like firefox
<worldofpeace> i'm just really familiar with the dialog. I think it should work
<gchristensen> I'll give that a try in a bit!
<pie__> worldofpeace: i mean i remember that too now that you mention it
<gchristensen> ouch, forgot how loud the shredder is, and used it less than 50 feet away from sleeping spouse at nearly 2am
<pie__> woopsie
<pie__> 10/10 would tackle you into bed
ar has joined #nixos-chat
<gchristensen> I don't stay up so late so often, and only when I really need to so I think things'll be okay as long as I don'tshred any more stuff
<pie__> ;p
<pie__> shredding things is so good though
<pie__> "well i dont have to worry about those papers any more because nothing can be done about them"
<gchristensen> I scanned them, so in a way I have to worry more! they're much easier to steal now :)
<pie__> ...same
<pie__> but at least they arent taking up headspace on my desk
<gchristensen> god yes
<gchristensen> see also reason #234923847 I'm awake at nearly 2am
<yorick> gchristensen: try the google cloud visionn thing, it's pretty good at handwritten
<yorick> gchristensen: cpdf is good at reordering pdfs
<yorick> also at all your pdf-related tasks
<yorick> the only question is if it compiles today
<yorick> >ocamlPackages.cpdf
<gchristensen> oh cool ocaml
<gchristensen> okay I'd better get off the computer relax a few minutes and go to bed
<elvishjerricco> Wow. My `~/.cache` dataset uses 1G according to `zfs list`. Glad I made that it's own dataset so it doesn't get snapshotted...
<gchristensen> good morning, EU friends
<yorick> it compiles today
<yorick> good night US friends
<yorick> (it's 1:54pm here in Asia)
<worldofpeace> Heh, sleeping. It's always like 👋 "hey?" and I'm like, meh. Let's blink three times ok? Cuz that counts.
<yorick> 16G /home/yorick/.cache/
Jackneill has joined #nixos-chat
veske has joined #nixos-chat
<avn> averell: if you be able to replace old pdftk with new one, I be very pleased. I have it in my longlist, but I not too familiar with java stuff
veske has quit [Quit: This computer has gone to sleep]
veske has joined #nixos-chat
veske has quit [Quit: This computer has gone to sleep]
veske has joined #nixos-chat
psyanticy has joined #nixos-chat
__monty__ has joined #nixos-chat
veske has quit [Quit: This computer has gone to sleep]
__Sander__ has joined #nixos-chat
veske has joined #nixos-chat
waleee-cl has joined #nixos-chat
veske has quit [Quit: Leaving]
<yorick> worldofpeace: to be fair, forks of unmaintained things are different than hostile forks for this
<yorick> I'm not really against calling this thing 'slim'
<yorick> note that both arch and gentoo advice against using slim :D
<yorick> advise*
<worldofpeace> I agree, the substance of the fork has a bit of a hostile attitude.
<worldofpeace> Given that no one adivses to use this project in its given state, it crazy they just haven't removed it.
<worldofpeace> My current stance is, if they really want this software back in nixpkgs, please rewrite it to be on par exactly with the default.
<worldofpeace> Though what makes me uncomfortable, this won't be the only software that happens to just be from oxij that could be important. IIRC, one of the tor-browsers in nixpkgs is a fork with their opinionated patches.
<yorick> that sounds a bit worse, tbh
tilpner_ is now known as tilpner
<worldofpeace> what part?
<yorick> worldofpeace: patched tor-browsers
<yorick> people depend on that for their security and we have arbitrary patches on it from a guy we don't really trust?!
<worldofpeace> Yeah we had a bit of a thing about this, it's a problem.
<worldofpeace> I have no personal reason to distrust them, because I've only interacted with them three times and read some things they've wrote.
<gchristensen> on principle we probably shouldn't be pulling tor-browser from anybody but upstream
<tilpner> "This branch is 336484 commits ahead, 165 commits behind arthuredelstein:tbb-esr31.1.1."
<tilpner> Makes it very easy to tell what patches SLNOS is carrying
<worldofpeace> the default branch is out of date
* tilpner probably just needs to check out both and diff
<worldofpeace> the diff isn't really big last time we checked, nor do I want to talk about it again 🤣 A PR is in order though
<gchristensen> if there are patches to carry, they could be fetchpatch'd and applied to upstream
<worldofpeace> ++
<gchristensen> hey this isn't -dev!
<worldofpeace> the patchset needs to be in the control of nixos directly
<gchristensen> how off topic of us :P
<worldofpeace> wait you're right !! :D
<worldofpeace> 🌮
<worldofpeace> ok I think we're safe now
<Taneb> What's you're favourite kind of cheese?
<gchristensen> I think I like all of it ;o
<Taneb> (trying to move the chat back on topic ;) )
<gchristensen> I don't go seeking out limburger but I enjoy it while it is around
<worldofpeace> lol
<worldofpeace> I'm an opposite, if there's a plate with it somewhere I'd have to evacuate
<gchristensen> how about you, Taneb?
<Taneb> Hmm
<Taneb> I quite like stilton but I can't manage a lot of it at once
<gchristensen> oh yeah nice
<worldofpeace> 😂 I'm reading the wikipedia page and it's just, idk https://en.m.wikipedia.org/wiki/Stilton_cheese#Dreams
<pie__> what XD
<pie__> psychomimetic cheese
endformationage has joined #nixos-chat
<infinisil> "alexherbo2 > infinisil I tried to compile surf myself from git but I cannot access https"
<infinisil> How do I reply to this in a way that tells that they can't expect people to help without them providing any info?
<infinisil> ,dnw
<{^_^}> "Does not work" isn't very helpful: What specifically doesn't work? What command did you run? What's the error?
<infinisil> ,dnw = What specifically doesn't work? What command did you run? What's the error?
<{^_^}> dnw redefined, was defined as "Does not work" isn't very helpful: What specifically doesn't work? What command did you run? What's the error?
<infinisil> ,dnw = Provide as much info as possible on problems. What specifically doesn't work? What command did you run? What's the error? This makes debugging easier and helps getting faster responses
<{^_^}> dnw redefined, was defined as What specifically doesn't work? What command did you run? What's the error?
__Sander__ has quit [Quit: Konversation terminated!]
<worldofpeace> nice infinisil 👍️
<infinisil> :)
tazjin has quit []
tazjin has joined #nixos-chat
drakonis has joined #nixos-chat
Jackneill has quit [Remote host closed the connection]
<ajs124> I just wrote some exim config that uses filter, map, tr and sg and I'm regretting every decision I ever made.
<gchristensen> really pretty in my back yard: https://twitter.com/grhmc/status/1204855243659530245
<gchristensen> guh that is potato quality
<__monty__> Hmm, page doesn't exist.
<cransom> he deleted with much gusto.
<gchristensen> the potato didn't capture the prettiness
<lassulus> nice backyard
<samueldr> wow, the rolling shutter makes a nice moiré at the start
<samueldr> probably combined with compression artifacts
<cransom> jj abrams would be proud of that flare.
<gchristensen> oh hehe samueldr that is because I'm recording through a window screen :)
<samueldr> oh
<gchristensen> I am incredibly impressed that you noticed in the first place
<samueldr> I would have assumed iOS or NixOS, but not Windows
<gchristensen> truly a heathen
psyanticy has quit [Quit: Connection closed for inactivity]
<gchristensen> I wonder if there is a trick which would make for a file `nix-build`able while also being #!nix-shell-compatible. so you could iterate on the script using nix-shell as a shebang, and then nix-build to fix the paths for your system
<gchristensen> samueldr: didn't you do something tricky around this?
<samueldr> not really, the trick I think you're thinking about is about running a .nix expression as a script
<gchristensen> oh right, can you share that one?
<gchristensen> seems close enough
<Taneb> I'm going to be moving next year so I'll need to find a new job. Does anyone know anyone doing anything nixy and remote in a time zone that's approximately western european?
<gchristensen> oh man this is so close
<samueldr> hm?
<gchristensen> #!nix-shell -p nix -i "nix-build -E '({ f }: (import <nixpkgs> {}).callPackage f {})' --arg f"
<gchristensen> I need to execute the build product and pass $@ to the build product
<pie__> :D
<pie__> tell me if you get something
<ajs124> Oh, oh, I think did that recently! Let me see if I can find it…
drakonis has quit [Ping timeout: 265 seconds]
Jackneill has joined #nixos-chat
Jackneill has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]
<rawkode> Has anyone got kbfs (KeybaseFS) working through home manager?