<gchristensen>
"Linux admins are so obsessed with not rebooting their servers because they're afraid they broke grub and don't want to fix it."
kalbasit has joined #nixos-chat
<samueldr>
wow, what a rollercoaster
<samueldr>
I was bisecting on nixpkgs, and ended up the commit just next to "good"
<gchristensen>
:o
<gchristensen>
welp.
<gchristensen>
I ran `git stash pop` by mistake, it created a boat load of merge conflicts in my work-in-progress, and now I'm pretty certain that means it is bed time.
<samueldr>
hmmm, is stash pop one of those with an --abort option?
<samueldr>
because I feel like they've added it to most annoying git commands
<gchristensen>
probably not
<gchristensen>
git didn't know what I had before, probably
<samueldr>
yeah
<gchristensen>
since I hadn't staged or committed anything
<gchristensen>
g'night! :)
<samueldr>
'night
<infinisil>
ZFS snapshots would be my rescue in such situations
drakonis has joined #nixos-chat
<clever>
gchristensen: once, i tested zfs /boot dataset, and it seems to "just work"
<clever>
i'm not sure how much id trust it, but that would let you even snapshot the /boot dr!
drakonis has quit [Quit: WeeChat 2.3]
jasongrossman has quit [Ping timeout: 264 seconds]
<elvishjerricco>
I have zfs /boot. Works perfectly fine with grub, even over LUKS.
<elvishjerricco>
(though I really want a boot loader based on linux efi stub because then I don't have to question my boot loader's support for my file system)
<clever>
i was using legacy booting when i did zfs /boot/
<clever>
so there was a bios boot partition, which contains the grub kernel and zfs driver
<clever>
grub-install will concat the kernel and driver, shove the blob directly into the BBP, and then put the LBA of the BBP into the MBR stub
<clever>
and thats enough to mount /boot, and load more grub modules
ninjin has quit [Ping timeout: 256 seconds]
endformationage has quit [Quit: WeeChat 2.4]
jasongrossman has joined #nixos-chat
ctp has quit [Ping timeout: 252 seconds]
eacameron has quit [Ping timeout: 252 seconds]
ctp has joined #nixos-chat
eacameron has joined #nixos-chat
ninjin has joined #nixos-chat
ninjin has quit [Remote host closed the connection]
ninjin has joined #nixos-chat
__monty__ has joined #nixos-chat
<jD91mZM2>
sphalerite: Oh noes! I have just solved it... twice. Which version?
<sphalerite>
0.6.1 from nixos 19.03
<jD91mZM2>
sphalerite: Is this in i3wm?
<sphalerite>
jD91mZM2: yes
<jD91mZM2>
Brilliant, that means you can just upgrade!
<sphalerite>
oh nice :D
<jD91mZM2>
I'll send a PR to Nixpkgs, but I think 0.6.2 should be there somewhere... I haven't kept track since it takes so long to recompile each time I change something
<jD91mZM2>
Maybe I can move to crate2nix or carnix
<andi->
use carnix it is great - once it works ;-)
<jD91mZM2>
crate2nix is new, but uses `cargo metadata` instead of rolling it's own stuff
<andi->
it doesn't support features at all
<jD91mZM2>
I still wish for a thing like this that is built on top of the cargo library and not the toml, but it is what it is
<andi->
yeah
<jD91mZM2>
Oh ok, thanks for the recommendation
<andi->
but yeah I think crate2nix is a bit nicer. The templating of the nix expression isn't great but much better then the current string concat approach of carnix..
<andi->
ohh it seems to have features now..
<jD91mZM2>
andi-: Once again carnix fails both in stable and unstable, but with different errors
<andi->
jD91mZM2: oh what are you seeing?
<andi->
I used it twice today already
<jD91mZM2>
andi-: error: attribute '_all' missing, at (string):1:41 in unstable version 0.9.8
<andi->
hmm
<jD91mZM2>
andi-: SqliteFailure panic on stable `cargo build` 0.7.2
<jD91mZM2>
Maybe worth noting the unstable can generate-nix, but not use `cargo build`. Maybe I can get away with that functionality
<andi->
i never used carnix build
<jD91mZM2>
andi-: Does it support passing custom feature flags?
<andi->
it does use the flags as they are described in your Cargo.toml
<andi->
and then according to the dependencies flags and so on
<jD91mZM2>
Crap, I need to enable/disable a specific feature on darwin
<andi->
that you can probably do with an override
endformationage has joined #nixos-chat
ninjin has quit [Remote host closed the connection]
ninjin has joined #nixos-chat
thePirateKing has joined #nixos-chat
thePirateKing has quit [Ping timeout: 252 seconds]
thePirateKing has joined #nixos-chat
kgz has quit [*.net *.split]
Twey has quit [*.net *.split]
__monty__ has quit [Read error: Connection reset by peer]
__monty__ has joined #nixos-chat
__monty__ has quit [Remote host closed the connection]
__monty__ has joined #nixos-chat
Twey has joined #nixos-chat
thePirateKing has quit [Ping timeout: 255 seconds]
kgz has joined #nixos-chat
jasongrossman has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos-chat
thePirateKing has joined #nixos-chat
thePirateKing has quit [Client Quit]
thePirateKing has joined #nixos-chat
<sphalerite>
Does anyone know any other distros similar to alpine linux? I'm considering using alpine (or, well, something similar) as the basis for a custom initramfs
<sphalerite>
since I suspect it's easier to coax it into making a small one than using nixpkgs stuff
<sphalerite>
(of course I'd be using nix to fetch the packages and assemble the whole thing :D )
<drakonis>
only alpine in this niche
<MichaelRaskin>
I gave up and use a huge initramfs
<drakonis>
its not without reason that it is a base for a lot of container images
<MichaelRaskin>
Well, there is sta.li …
<sphalerite>
MichaelRaskin: huge initramfs isn't an option because of a funky bootloader in my case :(
<MichaelRaskin>
Pity
<gchristensen>
I assume you've tried to make a smaller one?
<MichaelRaskin>
Who, me? Well, a couple of iterations ago I tried
<drakonis>
sta.li?
<drakonis>
it works?
<MichaelRaskin>
No idea
<drakonis>
i thought it was some random suckless whim
<MichaelRaskin>
Oh, speaking of Nix-managed initramfs: is it supposed to boot anything?
<MichaelRaskin>
Random suckless whims generally work…
<drakonis>
generally
<drakonis>
it looks like it died
<sphalerite>
MichaelRaskin: yeah, basically just import a zfs pool and hand over to that. Maybe at some point also allow selecting a system generation.
<MichaelRaskin>
sphalerite: an infinite pool of fun with initramfs is that you need to keep its modules in sync with the kernel, (and the actual system needs that too), and in sync with the task
<drakonis>
there's others that spawned off it that are effectively one man jobs
<sphalerite>
MichaelRaskin: oh yeah, I forgot, not just import the pool and switch_root in, but import the pool, then load a new kernel and initramfs and kexec, thus sidestepping that issue
<sphalerite>
so sort like petitboot + zfs I guess
<MichaelRaskin>
Are you sure you don't just want to have a FAT32 /boot to load initramfs and kernel from there?
<clever>
sphalerite: are you using the extra-utils stuff in nixos?
<sphalerite>
clever: no. I know that that would fix my problem but it's not exposed in a neatly accessible way :(
<MichaelRaskin>
sphalerite: or you can unpack Nix-built initramfs and nuke Python manually before repacking
<sphalerite>
and I don't really want to copy-paste it all
<clever>
ahh
<clever>
sphalerite: what if you just jam that path into the imports of a custom module setup?
<sphalerite>
MichaelRaskin: or nuke python in a separate derivation taking the previous nix-build initramfs as an input :D
<{^_^}>
#55523 (by 7c6f434c, 8 weeks ago, open): [RFC] makeInitrd main derivation name
<MichaelRaskin>
Nobody cares
<sphalerite>
MichaelRaskin: I do! :D
<clever>
MichaelRaskin: i also do
<MichaelRaskin>
Well, I decided to measure if _anyone_ cares, I created and issue with [RFC] label in name, zero reactions. Meh, I will just override what doesn't work
<clever>
that seems like a simple enough change to nixpkgs
<clever>
bbl, shower
<MichaelRaskin>
Yes, completely trivial
<MichaelRaskin>
Still after … various things around Nixpkgs … I don't want to direct-commit that
<sphalerite>
MichaelRaskin: yeah, it's a problem I don't really know how to solve yet, finding things I'm interested in/care about in the nixpkgs issues firehose
<MichaelRaskin>
And with zero reactions on an issue, I don't want to increase the PR list
<MichaelRaskin>
Like, there are actual problems around Nixpkgs
<MichaelRaskin>
I can rewrite the name in a wrapper.
<MichaelRaskin>
If I need a smaller initramfs, I can just repack
<sphalerite>
that's a very unsatisfying solution though :p
<MichaelRaskin>
I think the only satisfying solution around nixpkgs is Triton
<sphalerite>
I'm working on some naming improvements right now ;)
<sphalerite>
oh?
<sphalerite>
how lively is that?
<adisbladis>
Not very last I checked
<adisbladis>
Only 2 ppl actively contributing
<MichaelRaskin>
Still, quite a few commits
<clever>
MichaelRaskin: on the subject of compression, have you seen tools like pigz?
<MichaelRaskin>
Yes, of course
<clever>
that could be added into makeInitrd, to make it make faster
<MichaelRaskin>
Sigh
drakonis_ has joined #nixos-chat
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos-chat
jasongrossman has joined #nixos-chat
__monty__ has quit [Read error: Connection reset by peer]
__monty__ has joined #nixos-chat
__monty__ has quit [Remote host closed the connection]
__monty__ has joined #nixos-chat
thePirateKing has quit [Remote host closed the connection]
drakonis_ has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis1 has quit [Client Quit]
drakonis1 has joined #nixos-chat
drakonis_ has quit [Ping timeout: 246 seconds]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]