git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/sks: Update the descriptions and add meta.maintainers

TODO: Merge this module with https://github.com/NixOS/nixpkgs/pull/24516

commit6764d41ecc7ef10745abc02d09e4211e12345fd9 authorMichael Weiss <dev.primeos@gmail.com> dateSat 8 Sep 2018, 13:32 (8 years ago) parenta0d7b88
1 file changed+20−21
nixos/modules/services/security/sks.nix+20−21
nixos/modules/services/security/sks.nix+20−21
@@ -3,28 +3,26 @@
33with lib;
44
55let
6−
76 cfg = config.services.sks;
8−
97 sksPkg = cfg.package;
108
11−in
12−
13−{
9+in {
10+ meta.maintainers = with maintainers; [ primeos calbrecht jcumming ];
1411
1512 options = {
1613
1714 services.sks = {
1815
19− enable = mkEnableOption "sks";
16+ enable = mkEnableOption ''
17+ SKS (synchronizing key server for OpenPGP) and start the database
18+ server. You need to create "''${dataDir}/dump/*.gpg" for the initial
19+ import'';
2020
2121 package = mkOption {
2222 default = pkgs.sks;
2323 defaultText = "pkgs.sks";
2424 type = types.package;
25− description = "
26− Which sks derivation to use.
27− ";
25+ description = "Which SKS derivation to use.";
2826 };
2927
3028 dataDir = mkOption {
@@ -44,17 +42,16 @@ in
4442 hkpAddress = mkOption {
4543 default = [ "127.0.0.1" "::1" ];
4644 type = types.listOf types.str;
47− description = "
48− Wich ip addresses the sks-keyserver is listening on.
49− ";
45+ description = ''
46+ Domain names, IPv4 and/or IPv6 addresses to listen on for HKP
47+ requests.
48+ '';
5049 };
5150
5251 hkpPort = mkOption {
5352 default = 11371;
54− type = types.int;
55− description = "
56− Which port the sks-keyserver is listening on.
57− ";
53+ type = types.ints.u16;
54+ description = "HKP port to listen on.";
5855 };
5956 };
6057 };
@@ -76,19 +73,21 @@ in
7673 home = config.users.users.sks.home;
7774 user = config.users.users.sks.name;
7875 in {
79− sks-keyserver = {
76+ "sks-db" = {
77+ description = "SKS database server";
78+ after = [ "network.target" ];
8079 wantedBy = [ "multi-user.target" ];
8180 preStart = ''
8281 mkdir -p ${home}/dump
83− ${pkgs.sks}/bin/sks build ${home}/dump/*.gpg -n 10 -cache 100 || true #*/
84− ${pkgs.sks}/bin/sks cleandb || true
85− ${pkgs.sks}/bin/sks pbuild -cache 20 -ptree_cache 70 || true
82+ ${sksPkg}/bin/sks build ${home}/dump/*.gpg -n 10 -cache 100 || true #*/
83+ ${sksPkg}/bin/sks cleandb || true
84+ ${sksPkg}/bin/sks pbuild -cache 20 -ptree_cache 70 || true
8685 '';
8786 serviceConfig = {
8887 WorkingDirectory = home;
8988 User = user;
9089 Restart = "always";
91− ExecStart = "${pkgs.sks}/bin/sks db -hkp_address ${hkpAddress} -hkp_port ${hkpPort}";
90+ ExecStart = "${sksPkg}/bin/sks db -hkp_address ${hkpAddress} -hkp_port ${hkpPort}";
9291 };
9392 };
9493 };