diff options
Diffstat (limited to '')
-rw-r--r-- | modules/services/drone/server/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/services/drone/server/default.nix b/modules/services/drone/server/default.nix index 199aa47..9c1d1a1 100644 --- a/modules/services/drone/server/default.nix +++ b/modules/services/drone/server/default.nix @@ -1,5 +1,7 @@ { config, lib, pkgs, ... }: -let cfg = config.my.services.drone; +let + cfg = config.my.services.drone; + secrets = config.age.secrets; in { config = lib.mkIf cfg.enable { systemd.services.drone-server = { @@ -7,6 +9,8 @@ in { serviceConfig = { EnvironmentFile = [ cfg.sharedSecretFile ]; Environment = [ + "DRONE_DATABASE_DRIVER=sqlite3" + "DRONE_DATABASE_DATASOURCE=/var/lib/drone-server/drone.sqlite" "DRONE_SERVER_HOST=${cfg.vhostName}" "DRONE_SERVER_PROTO=https" "DRONE_SERVER_PORT=:${toString cfg.port}" @@ -14,6 +18,7 @@ in { "DRONE_JSONNET_ENABLED=true" "DRONE_STARLARK_ENABLED=true" ]; + StateDirectory = "drone-server"; ExecStart = "${pkgs.drone}/bin/drone-server"; User = "drone"; Group = "drone"; |