From 4b8620790c1e81d08d8a3300b9ba49adb07ba5c6 Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Sun, 27 Sep 2026 01:42:38 -0500 Subject: [PATCH] reference my keys --- virtual-machines/vm-test/flake.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/virtual-machines/vm-test/flake.nix b/virtual-machines/vm-test/flake.nix index c488efe..34deb12 100644 --- a/virtual-machines/vm-test/flake.nix +++ b/virtual-machines/vm-test/flake.nix @@ -23,9 +23,14 @@ credentials = builtins.listToAttrs ( map (filename: { name = builtins.replaceStrings [ ".env" ] [ "-env" ] filename; - value = pkgs.runCommand "sops-decrypt-${filename}" { } '' - ${pkgs.sops}/bin/sops -d ${./secrets}/${filename} > $out - ''; + value = + pkgs.runCommand "sops-decrypt-${filename}" + { + SOPS_AGE_KEY_FILE = "~/.config/sops/age/keys.txt"; + } + '' + ${pkgs.sops}/bin/sops -d ${./secrets}/${filename} > $out + ''; }) (builtins.attrNames (builtins.readDir ./secrets)) ); in