about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/drone/default.nix2
-rw-r--r--modules/services/drone/server/default.nix7
2 files changed, 7 insertions, 2 deletions
diff --git a/modules/services/drone/default.nix b/modules/services/drone/default.nix
index 352ee3d..dedf120 100644
--- a/modules/services/drone/default.nix
+++ b/modules/services/drone/default.nix
@@ -20,7 +20,7 @@
     };
     admin = mkOption {
       type = types.str;
-      default = "ambroisie";
+      default = "fcuny";
       example = "admin";
       description = "Name of the admin user";
     };
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";