[Nix-dev] Re: [Nix-commits] SVN commit: nix - 13732 - raskin - in nixos/trunk: system upstart-jobs

Nicolas Pierron nicolas.b.pierron at gmail.com
Mon Jan 12 19:46:40 CET 2009


On Fri, Jan 9, 2009 at 01:23, Michael Raskin <7c6f434c at mail.ru> 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.



More information about the nix-dev mailing list