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

Secrets referenced by home-manager are being deleted immediately after rekeying. #68

Open
pshirshov opened this issue Jan 25, 2025 · 2 comments

Comments

@pshirshov
Copy link

I'm trying to use this on NixOS built from a flake where my user has a home manager configuration.

When I'm trying to rekey my secrets, I'm getting this output:

    Rekeying host-xxx-user-xxx:id_ed25519
    Rekeying host-xxx-user-xxx:id_ed25519.pub
     Removed 2 orphaned files for xxx in ./secrets/rekeyed/xxx

So, for some reason it rekeys my HM secrets and then immediately drops the files. I'm wondering what I'm doing wrong.

@oddlama
Copy link
Owner

oddlama commented Jan 25, 2025

Is your config public by chance so I can have a look at it?

@pshirshov
Copy link
Author

Yeah, it's here: https://github.com/pshirshov/nix-gnome-lean , I've found a workaround, I define my secrets in nixos config here: https://github.com/pshirshov/nix-gnome-lean/blob/main/hosts/pavel-am5/cfg-pavel-am5.nix#L10 and then reference them in home-manager config here: https://github.com/pshirshov/nix-gnome-lean/blob/main/hosts/pavel-am5/home-pavel.nix#L10

Still, this is one more counterintuitive hoop to jump through.

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

2 participants