ryan4yin / nix-config

❄️ My nix config for both desktops(NixOS+macOS) and homelab servers(NixOS).
https://nixos-and-flakes.thiscute.world
MIT License
863 stars 52 forks source link

agenix not found #125

Closed fabricesemti80 closed 4 months ago

fabricesemti80 commented 4 months ago

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 commented 4 months ago

maybe you can try packages from github:ryan4yin/ragenix

nix shell github:ryan4yin/ragenix#ragenix
DataEraserC commented 4 months ago

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 4 months ago

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 commented 4 months ago

yes I think that works. thanks.