[Nix-dev] Importing a .nix.gpg file?

Azul mail at azulinho.com
Mon Jun 13 12:44:29 CEST 2016


:following

I simply keep my .gnupg in git, curious about what others do.
On 13 Jun 2016 11:39, "Michal Rus" <m at michalrus.com> wrote:

> Hey,
>
> in my nixos-config, I’ve got wifi-passwords.nix.gpg (the rest of the
> config is publicly available), and what I’d like to do is:
>
>     import ./wifi-passwords.nix.gpg;
>
> Or:
>
>     imports = [ ./wifi-passwords.nix.gpg ];
>
> … somewhere in configuration.nix. And when issuing `nixos-rebuild
> switch`, GnuPG would be used to decrypt the file.
>
> How can I achieve that? Was this discussed before (I can’t find any
> mentions)? May I post a feature request in an issue or will it be
> rejected?
>
> This seems like a useful feature and I have quite a few other uses for
> it besides Wi-Fi passwords. Currently, I’m using gpg manually, though,
> and that’s asking for errors.
>
> Thank you!
>
> --
> Michal Rus
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160613/55a66e8f/attachment.html>


More information about the nix-dev mailing list