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>
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>
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)
<
infinisil>
cole-h: no git?
<
cole-h>
Not atm. Doing my big overhaul (nixus + flakes) first.
<
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>
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>
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]