mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-04 03:01:05 +02:00
Goodbye docker
This commit is contained in:
parent
f3333833f7
commit
66230c5efc
2 changed files with 1 additions and 23 deletions
|
@ -146,4 +146,3 @@ trigger:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
- cron
|
- cron
|
||||||
- push
|
|
||||||
|
|
|
@ -18,14 +18,10 @@ in
|
||||||
config = mkIf cfg.enable (
|
config = mkIf cfg.enable (
|
||||||
mkMerge [{
|
mkMerge [{
|
||||||
|
|
||||||
|
|
||||||
luj.hmgr.droneserver.luj.programs.git.enable = true;
|
luj.hmgr.droneserver.luj.programs.git.enable = true;
|
||||||
users.groups.docker = {};
|
|
||||||
sops.secrets.drone = { };
|
sops.secrets.drone = { };
|
||||||
nix.allowedUsers = [ "droneserver"];
|
nix.allowedUsers = [ "droneserver"];
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
|
|
||||||
systemd.services.drone-server = {
|
systemd.services.drone-server = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
@ -82,24 +78,7 @@ in
|
||||||
path = [ pkgs.nixUnstable pkgs.git pkgs.docker pkgs.docker-compose pkgs.openssh ];
|
path = [ pkgs.nixUnstable pkgs.git pkgs.docker pkgs.docker-compose pkgs.openssh ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.drone-runner-docker = {
|
|
||||||
description = "Drone Docker Runner";
|
|
||||||
startLimitIntervalSec = 5;
|
|
||||||
serviceConfig = {
|
|
||||||
EnvironmentFile = [ config.sops.secrets.drone.path ];
|
|
||||||
Environment = [
|
|
||||||
"DRONE_SERVER_HOST=${cfg.nginx.subdomain}.julienmalka.me"
|
|
||||||
"DRONE_SERVER_PROTO=https"
|
|
||||||
"CLIENT_DRONE_RPC_HOST=127.0.0.1:3030"
|
|
||||||
];
|
|
||||||
|
|
||||||
ExecStart = "${pkgs.drone-runner-docker}/bin/drone-runner-docker";
|
|
||||||
};
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = [ pkgs.nixUnstable pkgs.git pkgs.docker pkgs.docker-compose pkgs.openssh ];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue