@ -55,17 +55,18 @@ in {
} ;
webroot = mkOption {
type = types . path ;
type = types . nullOr types . path ;
default = " ${ sksPkg . webSamples } / O p e n P K G " ;
defaultText = " \$ { p k g s . s k s . w e b S a m p l e s } / O p e n P K G " ;
description = ''
Source directory ( will be symlinked ) for the files the built-in
webserver should serve . SKS ( '' ${ pkgs . sks . webSamples } ) p r o v i d e s t h e
following examples : " H T M L 5 " , " O p e n P K G " , and " X H T M L + E S " . The index
file can be named index . html , index . htm , index . xhtm , or index . xhtml .
Files with the extensions . css , . es , . js , . jpg , . jpeg , . png , or . gif
are supported . Subdirectories and filenames with anything other than
alphanumeric characters and the ' . ' character will be ignored .
Source directory ( will be symlinked , if not null ) for the files the
built-in webserver should serve . SKS ( '' ${ pkgs . sks . webSamples } )
provides the following examples : " H T M L 5 " , " O p e n P K G " , and " X H T M L + E S " .
The index file can be named index . html , index . htm , index . xhtm , or
index . xhtml . Files with the extensions . css , . es , . js , . jpg , . jpeg ,
. png , or . gif are supported . Subdirectories and filenames with
anything other than alphanumeric characters and the ' . ' character
will be ignored .
'' ;
} ;
} ;
@ -95,7 +96,8 @@ in {
after = [ " n e t w o r k . t a r g e t " ] ;
wantedBy = [ " m u l t i - u s e r . t a r g e t " ] ;
preStart = ''
ln - sfT " ${ cfg . webroot } " web
$ { lib . optionalString ( cfg . webroot != null )
" l n - s f T \" ${ cfg . webroot } \" w e b " }
mkdir - p dump
$ { sksPkg } /bin/sks build dump /* . g p g - n 1 0 - c a c h e 1 0 0 | | t r u e # */
$ { sksPkg } /bin/sks cleandb || true