aboutsummaryrefslogtreecommitdiff
path: root/app/drone-ci/build
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-30 17:04:03 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-30 17:04:03 +0200
commit0c015b4e0c1b38b100be7f34c8da230f258ef7e9 (patch)
tree9c013afb0b15e670384e6ab88abd46ac76e88fb1 /app/drone-ci/build
parent4ec5cc43d4111150fc0b44b6a0afec2e07f8cc8d (diff)
downloadnixcfg-0c015b4e0c1b38b100be7f34c8da230f258ef7e9.tar.gz
nixcfg-0c015b4e0c1b38b100be7f34c8da230f258ef7e9.zip
Drone VM works
Diffstat (limited to 'app/drone-ci/build')
-rw-r--r--app/drone-ci/build/machine-config.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/drone-ci/build/machine-config.nix b/app/drone-ci/build/machine-config.nix
index e1d24a1..73d3f09 100644
--- a/app/drone-ci/build/machine-config.nix
+++ b/app/drone-ci/build/machine-config.nix
@@ -42,9 +42,13 @@ with lib;
virtualisation.docker.enable = true;
virtualisation.oci-containers.backend = "docker";
- systemd.user.services.drone_nix_setup = {
+ systemd.services.drone_nix_setup = {
+ enable = true;
+ path = [
+ pkgs.docker
+ ];
script = ''
- docker run --rm -it -v /var/lib/drone/nix:/mnt nixpkgs/nix:nixos-21.05 cp -r /nix/{store,var} /mnt/
+ docker run --rm -v /var/lib/drone/nix:/mnt nixpkgs/nix:nixos-21.05 cp -r /nix/{store,var} /mnt/
'';
wantedBy = [ "multi-user.target" ];
};