hydra-module.nix: Give types to options

[?]
Nov 6, 2013, 3:34 PM
7XOH2DGH3W4B7BJWCXDP673R5R7TQGLCNTHJT7IZUSBVQWYWJUHQC

Dependencies

  • [2] ASPNI2AO hydra-module.nix: Automatically create postgres db user for hydra and an admin hydra account
  • [3] 4J33F22T hydra-module.nix: Make it possible to add extra config lines
  • [4] J57PR4O3 hydra-module: Allow to specify the listen host.
  • [5] TUGDJU23 hydra-module.nix: Don't create an admin user
  • [6] ZVGQP2SX hydra-module: Add a `logo' option.
  • [7] KMPLMG7T hydra-module.nix: Cleanup
  • [8] ZYEFL36Q Ported/merged properties from the TUD configuration's hydra-module
  • [9] T4DBPQOF hydra-module: Run hydra-init during hydra-init.service
  • [10] INUGMXTG hydra-module: Add a `port' option.
  • [11] 25DXUDOJ hydra-module.nix: Remove the useWAL option
  • [12] 3PNG7NIB Remove trailing whitespace
  • [13] L62I7CPI Don't put ssmtp in hydra's paths
  • [14] BT6SNXUA Add an option to run the hydra server in debug mode
  • [15] D3MDJONY

Change contents

  • edit in hydra-module.nix at line 34
    [5.599]
    [5.599]
    type = types.bool;
  • edit in hydra-module.nix at line 42
    [5.1082]
    [5.122]
    type = types.string;
  • edit in hydra-module.nix at line 44
    [5.190][5.95:155](),[5.1149][5.95:155]()
    example = "dbi:SQLite:/home/hydra/db/hydra.sqlite";
  • replacement in hydra-module.nix at line 49
    [5.361][5.1257:1282](),[5.1257][5.1257:1282]()
    hydra = mkOption {
    [5.361]
    [5.403]
    package = mkOption {
    type = types.path;
  • replacement in hydra-module.nix at line 52
    [5.434][5.1312:1377](),[5.1312][5.1312:1377]()
    description = ''
    Location of hydra
    '';
    [5.434]
    [5.1377]
    description = "The Hydra package.";
  • edit in hydra-module.nix at line 56
    [5.1421]
    [5.1465]
    type = types.str;
  • edit in hydra-module.nix at line 63
    [4.30]
    [4.30]
    type = types.str;
  • edit in hydra-module.nix at line 73
    [5.73]
    [5.73]
    type = types.int;
  • edit in hydra-module.nix at line 81
    [5.1637]
    [5.1637]
    type = types.int;
  • replacement in hydra-module.nix at line 84
    [5.1683][5.448:542]()
    Threshold of minimum disk space (G) to determine if queue runner should run or not.
    [5.1683]
    [5.1779]
    Threshold of minimum disk space (GiB) to determine if queue runner should run or not.
  • edit in hydra-module.nix at line 89
    [5.1845]
    [5.1845]
    type = types.int;
  • replacement in hydra-module.nix at line 92
    [5.1891][5.543:634]()
    Threshold of minimum disk space (G) to determine if evaluator should run or not.
    [5.1891]
    [5.1984]
    Threshold of minimum disk space (GiB) to determine if evaluator should run or not.
  • edit in hydra-module.nix at line 97
    [5.2044]
    [5.2086]
    type = types.str;
  • edit in hydra-module.nix at line 104
    [5.2223]
    [5.2223]
    type = types.str;
  • edit in hydra-module.nix at line 112
    [5.247]
    [5.247]
    type = types.nullOr types.str;
  • edit in hydra-module.nix at line 120
    [5.102][5.102:127]()
    default = false;
  • edit in hydra-module.nix at line 121
    [5.154]
    [5.154]
    default = false;
  • replacement in hydra-module.nix at line 146
    [3.384][5.2592:2640](),[5.2592][5.2592:2640]()
    environment.systemPackages = [ cfg.hydra ];
    [3.384]
    [5.2640]
    environment.systemPackages = [ cfg.package ];
  • replacement in hydra-module.nix at line 195
    [2.697][5.195:264](),[5.195][5.195:264]()
    ${pkgs.shadow}/bin/su hydra -c ${cfg.hydra}/bin/hydra-init
    [2.697]
    [5.3887]
    ${pkgs.shadow}/bin/su hydra -c ${cfg.package}/bin/hydra-init
  • replacement in hydra-module.nix at line 207
    [5.1186][4.242:436]()
    { ExecStart = "@${cfg.hydra}/bin/hydra-server hydra-server -f -h '${cfg.listenHost}' --max_spare_servers 5 --max_servers 25 --max_requests 100${optionalString cfg.debugServer " -d"}";
    [5.1186]
    [5.330]
    { ExecStart = "@${cfg.package}/bin/hydra-server hydra-server -f -h '${cfg.listenHost}' --max_spare_servers 5 --max_servers 25 --max_requests 100${optionalString cfg.debugServer " -d"}";
  • replacement in hydra-module.nix at line 220
    [5.1684][5.1684:1842]()
    { ExecStartPre = "${cfg.hydra}/bin/hydra-queue-runner --unlock";
    ExecStart = "@${cfg.hydra}/bin/hydra-queue-runner hydra-queue-runner";
    [5.1684]
    [5.359]
    { ExecStartPre = "${cfg.package}/bin/hydra-queue-runner --unlock";
    ExecStart = "@${cfg.package}/bin/hydra-queue-runner hydra-queue-runner";
  • replacement in hydra-module.nix at line 234
    [5.2199][5.2199:2276]()
    { ExecStart = "@${cfg.hydra}/bin/hydra-evaluator hydra-evaluator";
    [5.2199]
    [5.388]
    { ExecStart = "@${cfg.package}/bin/hydra-evaluator hydra-evaluator";
  • replacement in hydra-module.nix at line 245
    [5.2533][5.2533:2622]()
    { ExecStart = "@${cfg.hydra}/bin/hydra-update-gc-roots hydra-update-gc-roots";
    [5.2533]
    [5.417]
    { ExecStart = "@${cfg.package}/bin/hydra-update-gc-roots hydra-update-gc-roots";