agenix not found #40

Closed
opened 2025-12-28 23:18:59 +01:00 by adam · 4 comments
Owner

Originally created by @fabricesemti80 on GitHub (May 4, 2024).

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.

Originally created by @fabricesemti80 on GitHub (May 4, 2024). Hi Mate, Trying to follow your steps @ https://github.com/ryan4yin/nix-config/tree/main/secrets .. But I am getting: ```shell [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 ```sh # /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.
adam closed this issue 2025-12-28 23:18:59 +01:00
Author
Owner

@DataEraserC commented on GitHub (May 4, 2024):

maybe you can try packages from github:ryan4yin/ragenix

nix shell github:ryan4yin/ragenix#ragenix
@DataEraserC commented on GitHub (May 4, 2024): maybe you can try packages from `github:ryan4yin/ragenix` ```shell nix shell github:ryan4yin/ragenix#ragenix ```
Author
Owner

@DataEraserC commented on GitHub (May 4, 2024):

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 commented on GitHub (May 4, 2024): 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.
Author
Owner

@DataEraserC commented on GitHub (May 4, 2024):

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
@DataEraserC commented on GitHub (May 4, 2024): 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 ```shell nix shell github:ryantm/agenix#agenix ```
Author
Owner

@fabricesemti80 commented on GitHub (May 4, 2024):

yes I think that works. thanks.

@fabricesemti80 commented on GitHub (May 4, 2024): yes I think that works. thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/nix-config#40