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 has quit [Ping timeout: 260 seconds]
bqv has joined #nixus
cole-h has joined #nixus
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixus
<cole-h> bqv: How do you modify the nixus stuff without modifying nixus itself?
<bqv> Bash hax :p
<bqv> alias stuff, for one
<bqv> Otherwise, inject into the dag
<bqv> Treat bash like it's a dirty lisp
<cole-h> I basically want to s/switch/test/ so I can test things without actually switching to them
<bqv> That may be nontrivial
<cole-h> Yep
<cole-h> Just gonna patch nixus for now :P
<bqv> Technically it does use test, heh
<bqv> Yeah… that switch script isn't very hackable atm
<bqv> Understandably
<infinisil> cole-h: How about switching, then testing, and rolling back (aka another deploy) if it doesn't work
<cole-h> Because I'd have to undo all my changes (of which there are a lot)
<cole-h> :P
<infinisil> cole-h: no git?
<cole-h> Not atm. Doing my big overhaul (nixus + flakes) first.
<infinisil> Ah
<infinisil> cole-h: Oh actually you could just keep the previous deployment derivation alive
<infinisil> And switch back to it at any point just by running the script again
* cole-h has already run `nix build` to verify no syntax issues
<cole-h> 👀
<cole-h> No matter, I just removed the `switch "$newsystem" boot` stuff from switch-run() :D
<cole-h> So it either `switch "$newsystem" test`s, or fails
<cole-h> (I hope)
<cole-h> Is there a way to get the current NixOS generation number? (Not directly related to nixus, I guess)
<infinisil> cole-h: ls /nix/var/nix/profiles
<cole-h> infinisil: ty
cole-h has quit [Quit: Goodbye]