joepie91 has quit [Remote host closed the connection]
<MichaelRaskin>
Yes
joepie91___ has joined #nixos-chat
joepie91___ is now known as joepie91
drakonis has quit [Read error: Connection reset by peer]
<andi->
awhh BTRFS.. I have that one machine that corrupts it's BTRFS whenever I suspend it. The NixOS initramfs skips fsck on BTRFS on purpose :/ The SSD looks fine. Now btfsck is segfaulting on the disk /o\
<MichaelRaskin>
I think btrfs mounting code (in-kernel) has better btrfs checking than btrfsck. Not a high bar, though.
<andi->
I've previously tried the `btrfs` tool, did some scrubbing etc.. everything looks fine. btrfsck was at least able to repair the issues until today.
* andi-
tries to kexec into an NixOS netboot image to reformat/install...
<andi->
mhm the documented steps produce an error: aarch64-linux is required... I am on amd64 thought m(
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-chat
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos-chat
{^_^} has quit [Changing host]
{^_^} has joined #nixos-chat
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-chat
pie__ has quit [Ping timeout: 260 seconds]
<manveru>
i'm wondering... is there some way to bootstrap for example bash using only `derivation`?
<manveru>
i'm just thinking what a possible builder would be then
<manveru>
without depending on nixpkgs :)
<infinisil>
manveru: I mean, you can just remove everything from nixpkgs that's not needed for bash and end up with that
<manveru>
i guess it's a bootstrapping problem
<manveru>
like, at some point you're gonna need a C compiler
<LnL>
for bash you could cheat...
<LnL>
do you actually need bash or just 'a shell'?
<manveru>
this is just for experimentation
<sphalerite>
manveru: it is possible, but usually using nixpkgs's bootstrap files is nicest
<sphalerite>
they're built from nixpkgs itself AFAIK
<manveru>
i wanted to give a presentation about how `derivation` works, kinda like in the nix pills
<LnL>
using derivation with packages from nixpkgs is probably less confusing, but let me make an example
<andi->
I am easily exhausted by many things these days.. probably the age :/
<manveru>
writing larger apps in Elm is pretty hard unfortunately :|
<samueldr>
manveru: didn't get to a larger app, but I seem to remember it looked like it could become tiresome
<andi->
What would you pick if it was about static pages that have an "extern" data source (a simple JSON blob) during creationg?
<samueldr>
andi-: something like middleman, no JS shenanigans
<samueldr>
generate static websites if possible
<manveru>
indeed
<samueldr>
or on-demand static-enough
<manveru>
JS always leads to pain, no matter what :P
<samueldr>
in my personal experience, you should use complex JS apps when you *need complex behaviour*
<samueldr>
e.g. replacing an application
<manveru>
and even then, try to make it stateless components if possible
<samueldr>
yes!
<samueldr>
one state as close to the root (or outside the react tree)
<andi->
mhm ERB syntax... I already have to use that for puppet.. Maybe I'll just let my rust app generate all those files instead of an JSON blob....
<samueldr>
but don't shy away from having local context for *some* things (like collapsible elements)
<samueldr>
andi-: I said middleman, but anything that can work with template is great
<samueldr>
so yeah, if you already have a tool generating those json files, maybe add html generation to it
<manveru>
dhall-to-text :)
<manveru>
(not that i've tried it)
<andi->
samueldr: I know... I used Hugo, Jekyll... but they always felt like so much more then what I need :D
<samueldr>
they probably were, if you didn't need the "articles" pipeline :)
<manveru>
they think everything's a blog :|
<gchristensen>
every time I do something with my jekyll blog it is just a fight.
<samueldr>
yes, that's why I used middleman when I was doing static websites, it worked much better for sites
<gchristensen>
honestly, html isn't that bad.
<samueldr>
gchristensen: you're mostly right
<samueldr>
the worst is getting an article into a template
<ldlework>
i plan to use org-mode when i get some time
<andi->
I used nikola for my personal blog that I havent updated in years.. felt okayish but then again thats an article style workflow
<samueldr>
for the moment you want to change the template
<gchristensen>
for f in $(find . ./posts); do cat header.html $f footer.html > $out/$(basename $f); done
<andi->
yes!
<samueldr>
gchristensen: used that in the past, works mostly fine
<gchristensen>
^.^
<samueldr>
then you have <title></title>
<ldlework>
i wrote my own static site generator (really a generalized content pipeline library) but i was the only user and got tired of maintaining it
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<gchristensen>
shush samueldr
<samueldr>
and possibly some meta things
<gchristensen>
:P
<samueldr>
and then you're shaving a yak
<samueldr>
:)
<gchristensen>
I know, it is solving a real thing but its a lot of stuff I really don't want
<andi->
thats what sed is for. Extract h1 from $f and replace that in the header :P
<LnL>
there's also the nix static generator, have not used that tho
<samueldr>
^ these days I would look into that
<gchristensen>
I tried it once but it was a lot, too
<gchristensen>
not my cup of tea
<gchristensen>
cool, though
<manveru>
that one was nice... but felt very rough
* samueldr
checked last blog post on own site
<andi->
that reminds me of the (for me) super complex actor rust nix thingy where you combine parts of applications with nix expressions and define routing(?) via nix expressions..
<samueldr>
2012!
<samueldr>
they were right, it all ended in 2012
<gchristensen>
oh, yeah, THAT thing
<LnL>
that sounds crazy :p
<andi->
let me grep for that..
<andi->
Some crazy crypto currency people created it
<samueldr>
it's not well-known how bash has a plugin infrastructure
<LnL>
gchristensen: euh
<gchristensen>
"euh" is a perfect sound for the disgust you should feel
<samueldr>
that's how you read it :)
* sphalerite
interpreted it more like "umm", thinking sound
<LnL>
guess some people really don't understand sarcasm?
<samueldr>
that was sarcastic?
<samueldr>
man, now I have to scrap all my projects
<LnL>
:)
<samueldr>
before I was englightened and learned about nix, I was building a build framework using bash builtins where possible
<gchristensen>
oh dear
<samueldr>
well, let me rephrase, it was mostly bash builtins, and had to support macOS so bash 3.2
<gchristensen>
oh dear
<sphalerite>
oh dear indeed
<samueldr>
it was surprisingly good, and allowed more control than what was available at the time
<samueldr>
and especially, source builds of libraries instead of magic sauce pre-built .so and .dylib
<LnL>
I probably stared to write more bash...
<samueldr>
oh, forgot about it, it supported windows through mingw
<samueldr>
well, msys and mingw
<samueldr>
it sounds painful, but using only builtins side-stepped the whole bsd vs. gnu coreutils
<samueldr>
hmm, at one time it also built everything for haiku too
<sphalerite>
oh yeah, I'm looking for work. Anybody, ideally mainland-europe-based, looking for someone who likes nix a great deal? :D
<andi->
Wouldn't most of us want to do that? :)
<sphalerite>
that work, you mean?
<andi->
yes
<andi->
with nix relations
<sphalerite>
oh yeah, gchristensen: elm-thing seems to work but always display the results for what was in the search bar *before* the last key press…
<gchristensen>
weird :D
<sphalerite>
so if you type fooo it shows the results for foo
sir_guy_carleton has joined #nixos-chat
<sphalerite>
andi-: well it can't hurt to ask, and I'm sure there's nix work to be had out there :)
<andi->
sphalerite: yes! I would like to do that myself... I am currently the odd grumpy guy at the office that just shakes his head at all the impure systems,..
<sphalerite>
:)
<gchristensen>
:D
<gchristensen>
maybe ping Mayflower, sphalerite?
<sphalerite>
gchristensen: oh and elm-thing seems to be awesome, forgot to mention that bit
<samueldr>
I was lucky enough to have been able to save a project with nix, proving its value to my client :)
<sphalerite>
gchristensen: yep they're on my to-contact list :D
<gchristensen>
samueldr: way to go!
<gchristensen>
sphalerite: <3
<andi->
I am still at the uboot phase of placing nix expressions everywhere and convincing fellow co-workers that sharing dev envs via nix expressions is a much saner approach...
<samueldr>
the following step was to use nix for the new dev environment for the post-MVP application (their MVP was a mess and they knew it)
<samueldr>
the neat thing is that nobody batted an eye, they all either didn't care (boo) or understood the value (yay)
<LnL>
I've not pushed to get nix in our product
<LnL>
but I've managed to convince other people to sell nix for me for developer tooling, etc. :D
<samueldr>
(I was in a controlling position at $client, I was there for my experience and not for code monkey businessing)
jtojnar has quit [Read error: Connection reset by peer]
<sir_guy_carleton>
i've asked before, but ... what's the best 2fa 'second auth. method' for personal accounts? using a usb key or a cell phone app? if the former, what the best key system?
<gchristensen>
I like yubikey's u2f when I can use it
<gchristensen>
failing that, I like Authy for TOTP
<sphalerite>
meh, eelco doesn't want to get rid of packageOverrides. Big surprise there.
<gchristensen>
did you see my comments about that in #nixos-dev?
<LnL>
I'm not sure if it's a good idea to remove it yet either, it's not even deprecated in 18.03 and I'm pretty sure a lot of people still use it for stuff where overlays wouldn't really gain them anything.
<gchristensen>
yeah
<gchristensen>
(but I'm biased to my own position of liking packageOverrides)
<MichaelRaskin>
I think I don't use it, but I agree that breaking configurations is a significant cost, and it is not clear what makes it worth the hassle
<gchristensen>
MichaelRaskin++
<{^_^}>
MichaelRaskin's karma got increased to 8
<LnL>
gchristensen: I can ssh to t2m.cunat.cz over ipv6
<LnL>
same with 2604:1380:0:d00::1, but that's a different machine
aszlig has quit [Quit: Kerneling down for reboot NOW.]
<andi->
Could as well be a firewall issue there.. not sure what IP originates that unreachable thingy.. could be his router on behalf of the device that is now off..
<gchristensen>
don't think so
<gchristensen>
LnL can ssh to it :)
aszlig has joined #nixos-chat
<LnL>
huh, I can't anymore...
<gchristensen>
oh boy
<LnL>
still responds to ping tho
<andi->
oh, now it does again.. A minute or two it didnt
<andi->
ssh also works for me :/
<LnL>
oh it's back :)
<LnL>
maybe vcunat rebooted it?
<gchristensen>
mysteries ...
<gchristensen>
I hate macs
<andi->
But they are so shiny :-)
<gchristensen>
friendly to home users, unfriendly to any sort of ... what I do wit them
jtojnar has joined #nixos-chat
<infinisil>
gchristensen: Do you need to use them for work?