Is it possible to easily create files like with writeText, but such that
they're "chmod 400" *before* the contents is written?

>From what I've read, NetworkManager expects to have network definitions as
chmod 400 files in /etc/NetworkManager/system-connections/ IIRC. I'm trying
to create them via appending to "environment.etc" property, but don't know
how to make them root-only readable.

On Wed, Dec 30, 2015 at 5:21 PM, Mateusz Czaplinski <[email protected]>
wrote:

> On Wed, Dec 30, 2015 at 5:11 PM, Jakob Gillich <[email protected]> wrote:
>
>> there is a open PR for the same thing with wpa_supplicant:
>> https://github.com/NixOS/nixpkgs/pull/12015
>>
>
> Nice, thanks! I'll try to play with it then and follow the above example.
>
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to