sops: set sops-config in dev shell

This commit is contained in:
SebastianStork 2025-07-22 23:26:50 +02:00
parent 062fd5de0b
commit d7e3fdeccd
2 changed files with 3 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{ inputs, ... }:
{ inputs, self, ... }:
{
perSystem =
{ pkgs, system, ... }:
@ -13,6 +13,7 @@
};
sops = pkgs.mkShell {
SOPS_CONFIG = self.packages.${system}.sops-config;
packages = [
pkgs.sops
pkgs.age

View file

@ -29,9 +29,6 @@
jsonConfig = { creation_rules = hostCreationRules ++ userCreationRules; } |> lib.strings.toJSON;
in
pkgs.runCommand "sops-config" { buildInputs = [ pkgs.yj ]; } ''
mkdir $out
echo '${jsonConfig}' | yj -jy > $out/sops.yaml
'';
pkgs.runCommand "sops-config" { buildInputs = [ pkgs.yj ]; } "echo '${jsonConfig}' | yj -jy > $out";
};
}