[Nix-dev] Importing a .nix.gpg file?
Eelco Dolstra
eelco.dolstra at logicblox.com
Wed Jun 15 13:06:08 CEST 2016
Hi,
On 06/12/2016 12:34 PM, Michal Rus wrote:
> 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?
I implemented this a while ago, but it's not in Nix master:
https://www.mail-archive.com/nix-dev@lists.science.uu.nl/msg17545.html
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
More information about the nix-dev
mailing list