-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nicolas Pierron wrote: > 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 ?
Direct porting of tested code. It was a job on LiveDVD all the time, I didn't want to mess with activation code for now, and I want to make most of LiveDVD pure configuration.nix-level tricks. > By the way, I now used a textClosure to generate the activation script Oh. Someone else tries to use something from my builderDefs effort. Nice to hear. I am even more pleased that you use one the core parts (script generation from blocks). Thanks. > (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. It's not a kind of a problem where another person editing small bits without global ambitions in that part of code will help to improve the situation, I think. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEcBAEBAgAGBQJJa7tBAAoJEE6tnN0aWvw36soIAK40kkzWlLOVCc5OaOBPZ3me GQbijoCNb4hhA59H3GEw2gDndqVzA1RY9kMNpvISPo9GscYSf2hoaFliL9BG8eqk 0kaPbgOZcfgQ2pjXngrzSzLFyy49sA36TpRfGDqjVmfNFg0oIO4dj4G5cuEyKAdc h+VC8ODfHUXXcWzqBiyivtwx1Up66mXykPbpPFV/Q5S6gLohUbfFWJzJpBrjXlak 4JlsFL+d1Y6mvnO5G420tcO3TuSujCQRyEIbsDFxdJ3XCvCBePrbR3Z4QkgJhx9B PRaou9bqsaj91ZVoXBEVuKXIucQz1FbwltpHwAfEC0rcKK3xT4tRzZVXtkSulx8= =iz81 -----END PGP SIGNATURE----- _______________________________________________ nix-dev mailing list [email protected] https://mail.cs.uu.nl/mailman/listinfo/nix-dev
