···5353 type = types.ints.u16;
5454 description = "HKP port to listen on.";
5555 };
5656+5757+ webroot = mkOption {
5858+ type = types.path;
5959+ default = "${sksPkg.webSamples}/OpenPKG";
6060+ defaultText = "\${pkgs.sks.webSamples}/OpenPKG";
6161+ description = ''
6262+ Source directory (will be symlinked) for the files the built-in
6363+ webserver should serve. SKS (''${pkgs.sks.webSamples}) provides the
6464+ following examples: "HTML5", "OpenPKG", and "XHTML+ES". The index
6565+ file can be named index.html, index.htm, index.xhtm, or index.xhtml.
6666+ Files with the extensions .css, .es, .js, .jpg, .jpeg, .png, or .gif
6767+ are supported. Subdirectories and filenames with anything other than
6868+ alphanumeric characters and the '.' character will be ignored.
6969+ '';
7070+ };
5671 };
5772 };
5873···7893 after = [ "network.target" ];
7994 wantedBy = [ "multi-user.target" ];
8095 preStart = ''
9696+ ln -sfT "${cfg.webroot}" web
8197 mkdir -p ${home}/dump
8298 ${sksPkg}/bin/sks build ${home}/dump/*.gpg -n 10 -cache 100 || true #*/
8399 ${sksPkg}/bin/sks cleandb || true