On Fri, Jan 9, 2009 at 01:23, Michael Raskin <[email protected]> wrote: > Added: nixos/trunk/upstart-jobs/guest-users.nix > =================================================================== > --- nixos/trunk/upstart-jobs/guest-users.nix (rev > 0) > +++ nixos/trunk/upstart-jobs/guest-users.nix 2009-01-09 00:23:07 UTC (rev > 13732) > @@ -0,0 +1,76 @@ > ... > + services = { > + extraJobs = optional enable { > + name = "clear-passwords"; > + job = '' > + description "Clear guest passwords" > + start on startup > + script > + for i in ${nameString}; do > + echo | ${pkgs.pwdutils}/bin/passwd --stdin $i > + done > + end script > + ''; > + }; > ...
Why guest-users.nix is an upstart job ? Shouldn't that be something which belongs to the activation script ? By the way, I now used a textClosure to generate the activation script (in the fix-style branch), so this could be easier for you to do it like that. Currently, this part of the branch is a bit messy because I have no idea how I should organized it. -- Nicolas Pierron http://www.linkedin.com/in/nicolasbpierron - If you are doing something twice then you should try to do it once. _______________________________________________ nix-dev mailing list [email protected] https://mail.cs.uu.nl/mailman/listinfo/nix-dev
