Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: attribute 'hasStorePathPrefix' missing #556

Closed
bwkam opened this issue Apr 29, 2024 · 1 comment
Closed

error: attribute 'hasStorePathPrefix' missing #556

bwkam opened this issue Apr 29, 2024 · 1 comment

Comments

@bwkam
Copy link

bwkam commented Apr 29, 2024

sops-nix is failing, I'm not sure why.
this is the full error:

      … while calling the 'head' builtin

         at /nix/store/mdl8yp9lzzzjla69qm42sk96p15vym7d-source/lib/attrsets.nix:850:11:

          849|         || pred here (elemAt values 1) (head values) then
          850|           head values
             |           ^
          851|         else

       … while evaluating the attribute 'value'

         at /nix/store/mdl8yp9lzzzjla69qm42sk96p15vym7d-source/lib/modules.nix:807:9:

          806|     in warnDeprecation opt //
          807|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          808|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'hasStorePathPrefix' missing

       at /nix/store/d0lnnw00mxa025i7dz4g4qcdfixxmg1s-source/modules/sops/default.nix:17:17:

           16|     descriptionClass = "noun";
           17|     check = x: !lib.path.hasStorePathPrefix (/. + x);
             |                 ^
           18|     merge = lib.mergeEqualOption;

This is how my sops-nix config in configuration.nix looks like:

   sops.defaultSopsFile = ../secrets/secrets.yaml;
  sops.defaultSopsFormat = "yaml";

  sops.age.keyFile = "/home/bwkam/.config/sops/age/keys.txt";
  sops.secrets.github = { };
@bwkam
Copy link
Author

bwkam commented May 1, 2024

Updating nixpkgs fixed it

@bwkam bwkam closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant