ChanServ changed the topic of #nixus to: Nixus is an experimental deployment tool for NixOS systems - https://github.com/Infinisil/nixus - https://logs.nix.samueldr.com/nixus/
<bqv> Sorry :p
<bqv> Huh, it does actually run last. But the echoes run first
<bqv> infinisil: oh, I was just missing >&2 so the output was race-conditioning
bqv has quit [Quit: WeeChat 2.9]
<infinisil> Situation: nixus uses bash for deployment, which is portable and easy to bootstrap (good for other platforms)
<infinisil> Problem: Bash sucks
<infinisil> So I want to switch to haskell, but problem: Haskell is hard to bootstrap, that would suck for other platforms
<infinisil> So how about this: Use Idris 2 instead, which is very much like Haskell in spirit, just much cooler
<infinisil> And Idris 2 can be bootstrapped relatively easily
<lovesegfault> I think it's a bit scary to have a tool written in a super esoteric lang
<lovesegfault> Which Idris 2 definitely is :P
<infinisil> On the other hand, that makes it exciting!
<infinisil> And nixus is already experimental, so might as well go all the way in!
<lovesegfault> infinisil: uh oh
<lovesegfault> [fourier] Copying secrets...
<lovesegfault> [fourier] Finished copying secrets
<lovesegfault> [fourier] Triggering system switcher...
<lovesegfault> [fourier] Trying to confirm success...
<lovesegfault> [fourier] cat: system-0/status: No such file or directory
<lovesegfault> [fourier] cat: system-0/active: No such file or directory
<lovesegfault> [fourier] /nix/store/xyrzxnwhnw3gx2hr1lqy0jgb8nja0f2r-switch/bin/switch: line 74: exit: : numeric argument required
<lovesegfault> [fourier] cat: system-0/status: No such file or directory
<lovesegfault> [fourier] cat: system-0/active: No such file or directory
<lovesegfault> [fourier] /nix/store/xyrzxnwhnw3gx2hr1lqy0jgb8nja0f2r-switch/bin/switch: line 74: exit: : numeric argument required
<lovesegfault> [fourier] cat: system-0/status: No such file or directory
<lovesegfault> [fourier] cat: system-0/active: No such file or directory
<lovesegfault> [fourier] /nix/store/xyrzxnwhnw3gx2hr1lqy0jgb8nja0f2r-switch/bin/switch: line 74: exit: : numeric argument required
<lovesegfault> [fourier] cat: system-0/status: No such file or directory
<lovesegfault> [fourier] cat: system-0/active: No such file or directory
<infinisil> No need to paste everything in here..
<lovesegfault> [fourier] /nix/store/xyrzxnwhnw3gx2hr1lqy0jgb8nja0f2r-switch/bin/switch: line 74: exit: : numeric argument required
<lovesegfault> [fourier] cat: system-0/status: No such file or directory
<lovesegfault> [fourier] cat: system-0/active: No such file or directory
<lovesegfault> [fourier] /nix/store/xyrzxnwhnw3gx2hr1lqy0jgb8nja0f2r-switch/bin/switch: line 74: exit: : numeric argument required
<lovesegfault> Sorry, it kept repeating as I tried to copy just the first one 😓
<infinisil> lovesegfault: Hm the only thing related I changed recently was this: https://github.com/Infinisil/nixus/commit/e3ae9158a6cb9b65b54c63bb50d6eb4a4f54ccb3
<infinisil> Specifically the `exec`'s look like they might be the culprit
<infinisil> Though they shouldn't really, but maybe you could try undoing them
<lovesegfault> this is the resulting script, fwiw
<infinisil> lovesegfault: What if you run line 77 and 87 manually (repeat 87 until it succeeds, otherwise your machine will reboot)
<infinisil> Check what $id is after 77 too
<lovesegfault> So, the machine rebooted
<lovesegfault> by itself
<lovesegfault> and now I can't repro
<lovesegfault> lol
<infinisil> Um
<infinisil> lovesegfault: What's /var/lib/system-switcher/next ?
<infinisil> In the target machine
<lovesegfault> 1
<infinisil> That's not a lot..
<infinisil> This starts with 0 indeed, and having done one deploy would put it at 1
<lovesegfault> I don't have system-switcher persisting after reboots
<lovesegfault> it gets wiped
<infinisil> Oh well there you go!
<infinisil> Probably that's it
<infinisil> Well unless it worked like that before
<infinisil> Though I don't think anything needs to be persisted there..
<infinisil> lovesegfault: Can you not reproduce even after the reboot?
<infinisil> Oh and shouldn't it be empty again if you wipe it after a reboot?
<infinisil> In any case, I shall take this as an indicator that not using bash anymore can't come soon enough
<lovesegfault> Right, it should, but when it rebooted I deployed and it worked
<lovesegfault> and so the indicator became 1
<infinisil> I see