Re: [Nix-dev] lighttpd service

2012-06-08 Thread Alexander Foremny
Thanks for your response. The lighttpd branch [1] is now on GitHub. But it isn't anything special. I'll try for a more sophisticated Nix expression the next few days. [1] https://github.com/aforemny/nixos/tree/lighttpd 2012/6/7 Kirill Elagin kirela...@gmail.com: I think the right way to handle

Re: [Nix-dev] lighttpd service

2012-06-07 Thread Alexander Foremny
Thanks for the notification. I rebased my Git repositories after I wrote the last mail and apparently forgot to push my local branch. It is working, but support through options in configuration.nix is very basic. I'll gladly maintain a more sophisticated Nix expression but I don't know how (and

Re: [Nix-dev] lighttpd service

2012-06-07 Thread Kirill Elagin
I think the right way to handle config files is the on used by xserver module. You provide a basic config, enough to run lighty in most well-trodden configurations, similar to configs included by other distros. And when someone needs an advanced config he just overwrites it completely with

Re: [Nix-dev] lighttpd service

2012-06-02 Thread Alexander Foremny
Hello, with Rickard's help I created a very simple Nix expression for Lighttpd. The changes can be found in my Git repository [1]. I've had some trouble with fetching upstream/master and merging it. But I think everything is in order now except some bogus commit messages. I'd appreciate comments

Re: [Nix-dev] lighttpd service

2012-05-31 Thread Rickard Nilsson
Hi Alexander, I have no troubles running av minimal lighttpd on NixOS. I can start and stop it with upstart. My configuration looks like this: let root = /srv/www; httpPort = 3000; httpConf = writeText webserver.conf '' server.document-root = ${root} server.port =

Re: [Nix-dev] lighttpd service

2012-05-27 Thread Alexander Foremny
Hello, I am still trying to get a minimal Nix expression for Lighttpd to work. However, I cannot get the upstart job to behave well. The Nix expression for the service so far is available on GitHub [1]. I also uploaded the generated upstart job file [2]. What's strange is that starting /

Re: [Nix-dev] lighttpd service

2012-05-24 Thread Nicolas Pierron
Hi, On Tue, May 22, 2012 at 3:13 PM, Alexander Foremny alexanderfore...@googlemail.com wrote: I am trying to write a service module for lighttpd. I came up with a minimal example [1] which is giving me the following error upon rebuilding my system. Nice. I would be happy to see that. How

[Nix-dev] lighttpd service

2012-05-22 Thread Alexander Foremny
Hello, I am trying to write a service module for lighttpd. I came up with a minimal example [1] which is giving me the following error upon rebuilding my system. $ nixos-rebuild -I nixos=~/code/nixos build Option 'services.lighttpd' defined without option declaration. I added the following