typhon-ci / typhon

Nix-based continuous integration
https://typhon-ci.org/
GNU Affero General Public License v3.0
208 stars 7 forks source link

Set `$HOME` and `nix.conf` inside actions #38

Open pnmadelaine opened 9 months ago

pnmadelaine commented 9 months ago

36 unmounted /etc for actions' runs and /etc/nix/nix.confis gone with it.

There is only one Nix call in the actions' library atm, so it is not too bad to just pass configuration manually to the CLI, but it would be nice to set global defaults, notably to enable flakes and the new CLI.

$HOME also needs to be set for Nix to work properly.

This should probably be done by lib.builders.mkActionScript.