diff options
author | Florian Klink <flokli@flokli.de> | 2020-08-15 16:36:22 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-08-15 16:59:38 +0200 |
commit | a90b92902051dd5c3719273c7b4dcd5a8588bb68 (patch) | |
tree | ed1b82c1b39f087420f96cb6144e7664c4590904 /nixos/modules/services/scheduling | |
parent | fadb45e6b57c554354e8df3a0e12acfffc4e3979 (diff) | |
download | nixlib-a90b92902051dd5c3719273c7b4dcd5a8588bb68.tar nixlib-a90b92902051dd5c3719273c7b4dcd5a8588bb68.tar.gz nixlib-a90b92902051dd5c3719273c7b4dcd5a8588bb68.tar.bz2 nixlib-a90b92902051dd5c3719273c7b4dcd5a8588bb68.tar.lz nixlib-a90b92902051dd5c3719273c7b4dcd5a8588bb68.tar.xz nixlib-a90b92902051dd5c3719273c7b4dcd5a8588bb68.tar.zst nixlib-a90b92902051dd5c3719273c7b4dcd5a8588bb68.zip |
nixos/chronos: remove module
The chronos package has been broken for > 9 months due to the breakage of the mesos package.
Diffstat (limited to 'nixos/modules/services/scheduling')
-rw-r--r-- | nixos/modules/services/scheduling/chronos.nix | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/nixos/modules/services/scheduling/chronos.nix b/nixos/modules/services/scheduling/chronos.nix deleted file mode 100644 index 9a8ed4c09ac1..000000000000 --- a/nixos/modules/services/scheduling/chronos.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -let - cfg = config.services.chronos; - -in { - - ###### interface - - options.services.chronos = { - enable = mkOption { - description = "Whether to enable graphite web frontend."; - default = false; - type = types.bool; - }; - - httpPort = mkOption { - description = "Chronos listening port"; - default = 4400; - type = types.int; - }; - - master = mkOption { - description = "Chronos mesos master zookeeper address"; - default = "zk://${head cfg.zookeeperHosts}/mesos"; - type = types.str; - }; - - zookeeperHosts = mkOption { - description = "Chronos mesos zookepper addresses"; - default = [ "localhost:2181" ]; - type = types.listOf types.str; - }; - }; - - ###### implementation - - config = mkIf cfg.enable { - systemd.services.chronos = { - description = "Chronos Service"; - wantedBy = [ "multi-user.target" ]; - after = [ "network.target" "zookeeper.service" ]; - - serviceConfig = { - ExecStart = "${pkgs.chronos}/bin/chronos --master ${cfg.master} --zk_hosts ${concatStringsSep "," cfg.zookeeperHosts} --http_port ${toString cfg.httpPort}"; - User = "chronos"; - }; - }; - - users.users.chronos.uid = config.ids.uids.chronos; - }; -} |