diff --git a/flake/dev-shells.nix b/flake/dev-shells.nix index 59088ab..dd4233c 100644 --- a/flake/dev-shells.nix +++ b/flake/dev-shells.nix @@ -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 diff --git a/flake/packages.nix b/flake/packages.nix index 0c797d2..c11a0d3 100644 --- a/flake/packages.nix +++ b/flake/packages.nix @@ -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"; }; }