about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authornicoo <nicoo@mur.at>2023-09-08 19:08:29 +0000
committernicoo <nicoo@mur.at>2023-09-08 19:28:49 +0000
commit8bb42ad1af99fdf51538f01133429b94655914de (patch)
tree496c184b821ae6b9cec632c2bdaa07dd4adb61c1 /nixos/modules/services
parentf5465f7d5141283d7640920d935dcbfa8ba7ba26 (diff)
downloadnixlib-8bb42ad1af99fdf51538f01133429b94655914de.tar
nixlib-8bb42ad1af99fdf51538f01133429b94655914de.tar.gz
nixlib-8bb42ad1af99fdf51538f01133429b94655914de.tar.bz2
nixlib-8bb42ad1af99fdf51538f01133429b94655914de.tar.lz
nixlib-8bb42ad1af99fdf51538f01133429b94655914de.tar.xz
nixlib-8bb42ad1af99fdf51538f01133429b94655914de.tar.zst
nixlib-8bb42ad1af99fdf51538f01133429b94655914de.zip
nixos/hail: Remove module
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/continuous-integration/hail.nix61
1 files changed, 0 insertions, 61 deletions
diff --git a/nixos/modules/services/continuous-integration/hail.nix b/nixos/modules/services/continuous-integration/hail.nix
deleted file mode 100644
index 62e8b8077c07..000000000000
--- a/nixos/modules/services/continuous-integration/hail.nix
+++ /dev/null
@@ -1,61 +0,0 @@
-{ config, lib, pkgs, ...}:
-
-with lib;
-
-let
-  cfg = config.services.hail;
-in {
-
-
-  ###### interface
-
-  options.services.hail = {
-    enable = mkOption {
-      type = types.bool;
-      default = false;
-      description = lib.mdDoc ''
-        Enables the Hail Auto Update Service. Hail can automatically deploy artifacts
-        built by a Hydra Continuous Integration server. A common use case is to provide
-        continuous deployment for single services or a full NixOS configuration.'';
-    };
-    profile = mkOption {
-      type = types.str;
-      default = "hail-profile";
-      description = lib.mdDoc "The name of the Nix profile used by Hail.";
-    };
-    hydraJobUri = mkOption {
-      type = types.str;
-      description = lib.mdDoc "The URI of the Hydra Job.";
-    };
-    netrc = mkOption {
-      type = types.nullOr types.path;
-      description = lib.mdDoc "The netrc file to use when fetching data from Hydra.";
-      default = null;
-    };
-    package = mkOption {
-      type = types.package;
-      default = pkgs.haskellPackages.hail;
-      defaultText = literalExpression "pkgs.haskellPackages.hail";
-      description = lib.mdDoc "Hail package to use.";
-    };
-  };
-
-
-  ###### implementation
-
-  config = mkIf cfg.enable {
-    systemd.services.hail = {
-      description = "Hail Auto Update Service";
-      wants = [ "network-online.target" ];
-      wantedBy = [ "multi-user.target" ];
-      path = with pkgs; [ nix ];
-      environment = {
-        HOME = "/var/lib/empty";
-      };
-      serviceConfig = {
-        ExecStart = "${cfg.package}/bin/hail --profile ${cfg.profile} --job-uri ${cfg.hydraJobUri}"
-          + lib.optionalString (cfg.netrc != null) " --netrc-file ${cfg.netrc}";
-      };
-    };
-  };
-}