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

agenix not found #125

Closed
fabricesemti80 opened this issue May 4, 2024 · 4 comments · Fixed by #126
Closed

agenix not found #125

fabricesemti80 opened this issue May 4, 2024 · 4 comments · Fixed by #126

Comments

@fabricesemti80
Copy link

Hi Mate,

Trying to follow your steps @ https://github.com/ryan4yin/nix-config/tree/main/secrets ..

But I am getting:

[fs@nixos:~/projects/nix-config]$ nix shell nixpkgs#agenix
error: flake 'flake:nixpkgs' does not provide attribute 'packages.x86_64-linux.agenix', 'legacyPackages.x86_64-linux.agenix' or 'agenix'
       Did you mean one of agebox or agenda?

[fs@nixos:~/projects/nix-config]$

(this is all the same weather I try to run this on a NixOS machine (vanila config with only SSH and flakes enabled, no other changes in the /etc/nixos/configuration.nix

# /etc/nixos/configuration.nix

...
  # Enable the Flakes feature and the accompanying new nix command-line tool
  nix.settings.experimental-features = [ "nix-command" "flakes" ];
...
services.openssh.enable = true;
...

Any suggestion what I am missing?

Ta,
FS.

@DataEraserC
Copy link
Contributor

DataEraserC commented May 4, 2024

maybe you can try packages from github:ryan4yin/ragenix

nix shell github:ryan4yin/ragenix#ragenix

@DataEraserC
Copy link
Contributor

The documentation also needs to be updated, there is no agenix in nixpkgs. Should we replace agenix with github:ryan4yin/ragenix's ragenix? After all, it also provides agenix.

@DataEraserC
Copy link
Contributor

Oh, it seems that the originally expected agenix was supposed to be provided by the flake github:ryantm/agenix.
So the command could also be

nix shell github:ryantm/agenix#agenix

@fabricesemti80
Copy link
Author

yes I think that works. thanks.

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

Successfully merging a pull request may close this issue.

2 participants