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 Secret Path isn't correctly setting NixOS module password. #240

Open
SmolPatches opened this issue Jan 30, 2024 · 0 comments
Open

Comments

@SmolPatches
Copy link

SmolPatches commented Jan 30, 2024

Currently running nixos-unstable and I'm having some issues with agenix that I can't seem to wrap my head around.
I have a nixos config below that builds fine but when trying to login to the user with the password set in watashi_pass.age it doesn't seem to work.
I am able to see the secret when I try agenix -e watashi_pass while in the secrets directory and I can see the output in the plaintext path.
I don't know if it matters but I am using flakes to install agenix and I updated my flake inputs today.

  age = {
    secrets = {
      test = {
       file = ./secrets/secret1.age;
       path = "/home/watashi/test.txt";
       owner = "watashi";
      };
      watashi_pass = {
        file = ./secrets/watashi_pass.age;
        owner = "watashi";
      };
    };
  };
  users = {
    mutableUsers = false;
   users.amade = {
    isNormalUser = true;
    passwordFile = config.age.secrets.watashi_pass.path;
   };
  };
@SmolPatches SmolPatches changed the title Agenix Secret Path isn't correctly setting the password Agenix Secret Path isn't correctly setting NixOS module password. Jan 30, 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