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/
<lovesegfault> infinisil: Something I find myself needing right now: A way for nixus to spit out an sd image that I can just flash in a device
<lovesegfault> I'm trying to write it myself but since I use nixus secrets it's complaining now that those modules don't exist (since I'm trying to instantiate my system config outside of nixus)
<infinisil> lovesegfault: What about using `nix-build -A config.nodes.foo.configuration.system.build.sdImage`?
<lovesegfault> I... hadn't thought of that :D
<infinisil> :D
<lovesegfault> hmm I don't see sdImage in there
<infinisil> Well you need to include the module for that
<lovesegfault> oh, right, it's the `/nixos` module I think
<infinisil> nixos/modules/installer/cd-dvd/sd-image.nix
<lovesegfault> can I add that import in a separate nix file and apply it to config.nodes.mySystem?
<lovesegfault> i.e. can I add this module without touching my system config somehow
<infinisil> lovesegfault: I guess you could add an argument to your nixus config
<infinisil> Like --arg sdImage true
<infinisil> And include it when it's true
* lovesegfault thinks
<infinisil> { sdImage ? false }: import ./path/to/nixus {} { defaults.configuration = { modulesPath, lib, ... }: { imports = lib.optional sdImage (modulesPath + "/installer/cd-dvd/sd-image.nix"); }; }
<infinisil> lovesegfault: Something like this ^
cole-h has quit [Quit: Goodbye]
<bqv> srk: that was my thought too, w.r.t haskell+low deps
<bqv> but i also quite liked the idea of using execline instead of bash, so i gently "forked" nixus into my flake
<bqv> if the arbitrary languages thing works out i could probably go back to that
cole-h has joined #nixus