ragenix: set RULES via direnv

resolves #12
This commit is contained in:
Fiscal Velvet Poet 2023-04-20 14:03:03 +10:00
parent 27454a11e4
commit b91295b36f
Signed by: fiscalvelvetpoet
GPG key ID: D8EBFD58B023BD47
2 changed files with 3 additions and 1 deletions

2
.envrc
View file

@ -1,4 +1,6 @@
use flake use flake
watch_file flake.nix watch_file flake.nix
# Allow ragenix to find it's configuration
export RULES=$(realpath ./secrets/secrets.nix)
export NIXOPS_DEPLOYMENT=jfdic-ops export NIXOPS_DEPLOYMENT=jfdic-ops

View file

@ -1,5 +1,5 @@
# Used by ragenix nix only. # Used by ragenix nix only.
# Ensure that $RULES has been set # Ensure that $RULES has been set via direnv
let let
fiscalvelvetpoet = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJDMAhG6+40YiYy9wqruHK9M2fLwYAqikJSJ/pRjR/so"; fiscalvelvetpoet = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJDMAhG6+40YiYy9wqruHK9M2fLwYAqikJSJ/pRjR/so";
ops = [fiscalvelvetpoet]; ops = [fiscalvelvetpoet];