gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
waleee-cl has quit [Quit: Connection closed for inactivity]
drakonis has quit [Quit: WeeChat 2.7]
slack1256 has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 2.6]
tilpner_ has joined #nixos-chat
tilpner has quit [Ping timeout: 268 seconds]
cole-h has quit [Ping timeout: 272 seconds]
malSet has quit [Ping timeout: 240 seconds]
malSet has joined #nixos-chat
Jackneill has joined #nixos-chat
kalbasit has quit [Ping timeout: 248 seconds]
rawkode has joined #nixos-chat
cbarrett has quit [Ping timeout: 248 seconds]
raboof has quit [Ping timeout: 248 seconds]
peel has joined #nixos-chat
kalbasit has joined #nixos-chat
cbarrett has joined #nixos-chat
raboof has joined #nixos-chat
johanot has joined #nixos-chat
davidtwco has joined #nixos-chat
KeiraT has quit [Ping timeout: 240 seconds]
KeiraT has joined #nixos-chat
lassulus has quit [Ping timeout: 272 seconds]
Synthetica has joined #nixos-chat
eyJhb has quit [Quit: Clever message]
eyJhb has joined #nixos-chat
worldofpeace has quit [*.net *.split]
worldofpeace has joined #nixos-chat
psyanticy has joined #nixos-chat
CRTified has quit [Ping timeout: 272 seconds]
CRTified has joined #nixos-chat
CRTified has quit [Ping timeout: 258 seconds]
<manveru> adisbladis: is there some easy way to use poetry with a pipfile?
CRTified has joined #nixos-chat
waleee-cl has joined #nixos-chat
bridge[evilred] has joined #nixos-chat
red[evilred] has joined #nixos-chat
<andi-> samueldr: IIRC you wanted a nudge on new GRUB versions... 2.06 was just released
<andi-> actually just code freeze: code freeze: 15th of March, 23:59:59 UTC
buckley310 has quit [Ping timeout: 265 seconds]
buckley310 has joined #nixos-chat
KeiraT has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos-chat
slack1256 has joined #nixos-chat
<Taneb> Is the only way to lose {^_^} karma to try and increase yourself?
<gchristensen> yeah
KeiraT has joined #nixos-chat
<samueldr> andi-: then let's swait to the 15th :)
<eyJhb> Taneb--
<eyJhb> :D
lassulus has joined #nixos-chat
cole-h has joined #nixos-chat
neeasade has joined #nixos-chat
Jackneill has quit [Remote host closed the connection]
__monty__ has joined #nixos-chat
endformationage has joined #nixos-chat
slack1256 has quit [Remote host closed the connection]
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
endforma1 has joined #nixos-chat
endformationage has quit [Ping timeout: 240 seconds]
psyanticy has quit [Quit: Connection closed for inactivity]
waleee-cl has quit [Quit: Connection closed for inactivity]
lovesegfault has joined #nixos-chat
neeasade has quit [Ping timeout: 272 seconds]
waleee-cl has joined #nixos-chat
Jackneill has joined #nixos-chat
Jackneill has quit [Remote host closed the connection]
drakonis has quit [Quit: WeeChat 2.7]
__monty__ has quit [Quit: leaving]
drakonis has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 240 seconds]
<gchristensen> I want a netboot image which in stage-1 can swap between multiple different system configuration profiles
<samueldr> ...
<gchristensen> which I guess is basically implementing a bootloader
<gchristensen> samueldr: yesss?
<samueldr> get in line
<samueldr> andi-, clever, qyliss also want one
<gchristensen> really?
<gchristensen> how did I miss all this? :P
<samueldr> and I do too, which is why I've been working on it
<gchristensen> what
<gchristensen> how do you decide which to pick?
<samueldr> that new stage-1 for mobile-nixos is my attempt
<samueldr> I haven't dont that specific bit yet, but I'm about too, and going to handle it "systemd-like", likey they (is it them?) do for passphrases
<gchristensen> hmm
<samueldr> I'll need to check back what it was
<samueldr> but basically, the idea is to not have one backend
<samueldr> since I'm pretty sure the GUI for phones is not good for a netboot image
<gchristensen> nice
<gchristensen> my ideal would have 2 methods, first one then the other: (a) `profile=name1` in the kernel cmdline (b) do a network lookup to ask the provisioning system what it is supposed to be
<gchristensen> importantly name1 is symbolic, not a store path
<gchristensen> samueldr: do you have some wip stuff I could look at? :D
<samueldr> I'm thinking that this "proof-of-concept" stage-1 will have to be revised, worked on, and upstreamed to nixos proper, to ensure we don't "fork" nixos' boot process too much
<gchristensen> probably would be good
<andi-> samueldr: add flokli to the list..
<samueldr> and I'm 100% sure there will be gut feeling of disgust by some when they'll see it's made in ruby
<gchristensen> you're probably right, but I'll take it
<samueldr> right, I also forgot elvishjerricco
<andi-> so *basically* everyone? :D
<samueldr> those that don't, just don't know they do, yet
<andi-> exactly
<samueldr> okay, so, it's in the master branch in here https://github.com/NixOS/mobile-nixos
<samueldr> but not exactly trivial to deal show as it's not entirely self-contained
<samueldr> there is no boot selection yet, that's what I'm currently working on (well, its gui)
<gchristensen> samueldr: I have already heavily forked netboot.nix so not sure this is a big step past heh
<samueldr> modules can add more "tasks" to it, some have inline ruby, some refer to external files
<elvishjerricco> Everyday, we stray further from the systemd stage 1 :P
<samueldr> not necessarily incompatible; it could be used as stage-0, that kexecs into a system with systemd in stage-1
<gchristensen> so early how can it know what to boot
<gchristensen> there you go
<andi-> I found https://michael.stapelberg.ch/posts/2020-01-21-initramfs-from-scratch-golang/ inspiring at trying to make a single binary initrd
<andi-> that just does what I need and kexec's into the target
<samueldr> my main plan for this is to, once concept proven, work with the community in rewriting in rust
<samueldr> (that's you pals)
<flokli> There's also uroot, which basically is a framework for implementing your own boot method
<elvishjerricco> samueldr: If you made linux act like a boot loader for kexec-ing into a nixos generation, you'd be my hero :P
<samueldr> though, a big stumbling block is that we'll need cross-compilable rust :3
<flokli> We might want to hook up with that
<samueldr> elvishjerricco: that's basically part of the multi-pronged attack on boot
<elvishjerricco> Nice
<samueldr> yeah, knew about u-root
<flokli> I'm not sure if we want to implement yet another framework to build our own bootloader ;-)
<samueldr> though at the point I looked at it it was more "busybox, but in go"
<samueldr> which I'm not sure is a net win
drakonis has joined #nixos-chat
<flokli> No, it's some "busybox in go", but it's really more of a framework to write your own bootloader code, supporting some common formats
<samueldr> and I thin we actually do, since when I looked at other solutions (e.g. petitboot) they all lack in the generations selection
<samueldr> flokli: when I looked at it *in the past*
<flokli> > Go bootloaders that use kexec to boot Linux or multiboot kernels such as ESXi, Xen, or tboot. They are meant to be used with LinuxBoot. With that, parsers for GRUB config files or syslinux config files are to make transition to LinuxBoot easier.
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):281:24
<samueldr> or other solutions often lacked in pluggable backends
<samueldr> I really looked at alternatives before NIH'ing again
<samueldr> one of my problems was getting a GUI for phones, where there's no network, no console, no VT, only a dumb framebuffer
drakonis_ has quit [Ping timeout: 248 seconds]
<samueldr> almost all linux-as-bootloader solutions are built with embedded serial access or network access in mind first
<gchristensen> fair
<elvishjerricco> Yea aren't they mostly designed for using on servers or something?
<samueldr> meanwhile I intend to boot all my machines using mobile-nixos' code path ASAP
<samueldr> (and make it pretty)
<gchristensen> nice
drakonis_ has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis has quit [Ping timeout: 272 seconds]
<qyliss> Heads does generation selection, fwiw.
<qyliss> Or... tries to
drakonis_ has quit [Ping timeout: 248 seconds]
<elvishjerricco> samueldr: You mean like on desktops too?
<samueldr> through a VT IIRC
<samueldr> elvishjerricco: yes
<qyliss> but yes, through a VT
<elvishjerricco> Let me know when you get that working. I'd probably mess with it too
<samueldr> phones :(
<samueldr> also, concurrent backends for selection are needed
<samueldr> you need to be able to choose the generation from either of the running backends, as it may happen that you get a phone running, without a touchscreen working, but ssh or serial working
<samueldr> or for your use cases, pals, serial + ssh access to the same machine
<samueldr> or even... https! either push or pull!
drakonis has joined #nixos-chat
drakonis1 has quit [Ping timeout: 272 seconds]
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 248 seconds]
drakonis_ has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos-chat
<emily> samueldr: ooh, that sounds fancy, how does mobile-nixos' boot work?
<emily> add me to the ping list I guess :p
<samueldr> do you want to know from before the kernel boots?