[Nix-dev] /etc/skel, useradd - resolve symlinks before copying?

Marc Weber marco-oweber at gmx.de
Sat Feb 12 15:09:13 CET 2011


Excerpts from Florian Friesdorf's message of Sat Feb 12 14:39:22 +0100 2011:
> Does it need to be a symlink at all or could the nix expression just
> generate a file

Of course it can.
Have a look at nixos/modules/system/etc/setup-etc.pl

  # Remove dangling symlinks that point to /etc/static.  These are
  # [..]
  sub cleanup {

So files won't dangle. So you have to do extra book keeping then.
That's why I suggested patching useradd instead.

Marc Weber



More information about the nix-dev mailing list