mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
switch to direnv use flake
This commit is contained in:
parent
cbf6d83a8a
commit
805e5b6ac0
2 changed files with 3 additions and 5 deletions
2
.envrc
2
.envrc
|
|
@ -8,4 +8,4 @@ if [[ -e trusted/trusted/flake.nix ]]; then
|
|||
export TRUSTED=1
|
||||
fi
|
||||
|
||||
use nix
|
||||
use flake
|
||||
|
|
|
|||
|
|
@ -7,16 +7,14 @@ let
|
|||
inherit (lib.options) optional;
|
||||
inherit (lib.attrsets) attrValues;
|
||||
nf-actions = pkgs.writeShellScriptBin "nf-actions" ''
|
||||
cd "${toString ./.}"
|
||||
NF_CONFIG_FILES=($NF_CONFIG_ROOT/{nodes,flake-cron}.nix)
|
||||
NF_CONFIG_FILES=($NF_CONFIG_ROOT/ci/{nodes,flake-cron}.nix)
|
||||
for f in "''${NF_CONFIG_FILES[@]}"; do
|
||||
echo $f
|
||||
nix run --argstr config "$f" -f '${inputs.ci}' run.gh-actions-generate
|
||||
done
|
||||
'';
|
||||
nf-actions-test = pkgs.writeShellScriptBin "nf-actions-test" ''
|
||||
cd "${toString ./.}"
|
||||
nix run --argstr config "$NF_CONFIG_ROOT/nodes.nix" -f '${inputs.ci}' job.tewi.test
|
||||
nix run --argstr config "$NF_CONFIG_ROOT/ci/nodes.nix" -f '${inputs.ci}' job.tewi.test
|
||||
'';
|
||||
nf-update = pkgs.writeShellScriptBin "nf-update" ''
|
||||
nix flake update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue