diff options
author | Franck Cuny <franck@fcuny.net> | 2022-11-05 12:47:02 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-11-05 12:47:02 -0700 |
commit | 5f40c7a5b0cb555f64231d18cf105bf0ec7eb0a2 (patch) | |
tree | 437fb6409e166cc64947d754458f2544502275dd /modules/services/drone/default.nix | |
parent | ref(home/git): update mapping for the git-helper (diff) | |
download | world-5f40c7a5b0cb555f64231d18cf105bf0ec7eb0a2.tar.gz |
Revert "ref(drone): remove all modules and configurations"
This reverts commit 614fc2fcce0e9ae0bcfdc6e08d3c4bac846d02a8.
Diffstat (limited to 'modules/services/drone/default.nix')
-rw-r--r-- | modules/services/drone/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/modules/services/drone/default.nix b/modules/services/drone/default.nix new file mode 100644 index 0000000..dedf120 --- /dev/null +++ b/modules/services/drone/default.nix @@ -0,0 +1,39 @@ +# A docker-based CI/CD system +# +# Inspired by [1] +# [1]: https://github.com/Mic92/dotfiles/blob/master/nixos/eve/modules/drone.nix +{ lib, ... }: { + imports = [ ./runner-docker ./runner-exec ./server ]; + + options.my.services.drone = with lib; { + enable = mkEnableOption "Drone CI"; + vhostName = mkOption { + type = types.str; + example = "drone.fcuny.net"; + description = "Name for the virtual host"; + }; + runners = mkOption { + type = with types; listOf (enum [ "exec" "docker" ]); + default = [ ]; + example = [ "exec" "docker" ]; + description = "Types of runners to enable"; + }; + admin = mkOption { + type = types.str; + default = "fcuny"; + example = "admin"; + description = "Name of the admin user"; + }; + port = mkOption { + type = types.port; + default = 3030; + example = 8080; + description = "Internal port of the Drone UI"; + }; + sharedSecretFile = mkOption { + type = types.str; + example = "/run/secrets/drone-rpc.env"; + description = "Shared RPC secret to inject into server and runners"; + }; + }; +} |