So, how /etc/shadow file works? I did a quick look and seems it's generated by some perl scripts (probably omitting nix store), is that correct? Maybe the same way could be used here.
2016-01-06 15:03 GMT+00:00 Fabian Schmitthenner <fab...@schmitthenner.eu>: > I think you can use > > environment.etc."NetworkManager/system-connections/some-file" = { > text = "Text of file"; > mode = "0400"; > } > > This will copy the file into /etc with appropriate mode at activation > time. See also http://nixos.org/nixos/options.html and search for > environment.etc for further options. > > (Of cause other users can still read the original file in the nix store, > so the contents would still be reachable for all users). > > Greetings > > Fabian > > On 01/06/2016 02:26 PM, Vladimír Čunát wrote: > > On 01/06/2016 12:52 AM, Mateusz Czaplinski wrote: > >> NetworkManager expects to have network definitions as chmod 400 files in > >> /etc/NetworkManager/system-connections/ IIRC. > > > > Files in nix store can't be chmod 400. > > > > --Vladimir > > > > > > > > > > _______________________________________________ > > nix-dev mailing list > > nix-dev@lists.science.uu.nl > > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > > > > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > -- Tomasz Czyż
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev