diff options
author | Franck Cuny <franck@fcuny.net> | 2022-06-11 13:47:53 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-11 13:49:31 -0700 |
commit | 614fc2fcce0e9ae0bcfdc6e08d3c4bac846d02a8 (patch) | |
tree | b3557983fea7381545b80de64d116db42298ee6b /modules/services/drone/runner-docker | |
parent | ref(gitea): remove all modules for gitea (diff) | |
download | world-614fc2fcce0e9ae0bcfdc6e08d3c4bac846d02a8.tar.gz |
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 <franck@fcuny.net>
Diffstat (limited to 'modules/services/drone/runner-docker')
-rw-r--r-- | modules/services/drone/runner-docker/default.nix | 40 |
1 files changed, 0 insertions, 40 deletions
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 = { }; - }; -} |