From 614fc2fcce0e9ae0bcfdc6e08d3c4bac846d02a8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 11 Jun 2022 13:47:53 -0700 Subject: ref(drone): remove all modules and configurations I do not use drone anymore, no need to keep this around. Change-Id: I8f9564747939a6d1a2b95bcfe8e2c70e46d8bc1e Reviewed-on: https://cl.fcuny.net/c/world/+/411 Tested-by: CI Reviewed-by: Franck Cuny --- modules/services/drone/runner-docker/default.nix | 40 ------------------------ 1 file changed, 40 deletions(-) delete mode 100644 modules/services/drone/runner-docker/default.nix (limited to 'modules/services/drone/runner-docker') diff --git a/modules/services/drone/runner-docker/default.nix b/modules/services/drone/runner-docker/default.nix deleted file mode 100644 index 428a8d6..0000000 --- a/modules/services/drone/runner-docker/default.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ config, lib, pkgs, ... }: -let - cfg = config.my.services.drone; - hasRunner = (name: builtins.elem name cfg.runners); - dockerPkg = pkgs.drone-runner-docker; -in -{ - config = lib.mkIf (cfg.enable && hasRunner "docker") { - systemd.services.drone-runner-docker = { - wantedBy = [ "multi-user.target" ]; - after = [ "docker.socket" ]; # Needs the socket to be available - # might break deployment - restartIfChanged = false; - confinement.enable = true; - serviceConfig = { - Environment = [ - "DRONE_SERVER_HOST=${cfg.vhostName}" - "DRONE_SERVER_PROTO=https" - "DRONE_RUNNER_CAPACITY=10" - "CLIENT_DRONE_RPC_HOST=127.0.0.1:${toString cfg.port}" - ]; - BindPaths = [ "/var/run/docker.sock" ]; - EnvironmentFile = [ cfg.sharedSecretFile ]; - ExecStart = "${dockerPkg}/bin/drone-runner-docker"; - User = "drone-runner-docker"; - Group = "drone-runner-docker"; - }; - }; - - # Make sure it is activated in that case - virtualisation.docker.enable = true; - - users.users.drone-runner-docker = { - isSystemUser = true; - group = "drone-runner-docker"; - extraGroups = [ "docker" ]; # Give access to the daemon - }; - users.groups.drone-runner-docker = { }; - }; -} -- cgit 1.4.1