From e86d3c2ef54ae9ed0bbb61278c7d3e2080f0fa42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Mon, 27 Jun 2022 20:33:35 +0100 Subject: [PATCH] create /tmp --- .drone.yml | 3 ++- flake.nix | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index c469600..8235caa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,8 +7,9 @@ steps: - name: buildImage image: git.chir.rs/darkkirb/nixos-containers:buildimage commands: + - mkdir /tmp - nix build '.#buildImage' - - cat reuslt | skopeo copy --dest-creds=darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nixos-containers:buildImage --dest-compress-format gzip --dest-compress-level 9 + - cat result | skopeo copy --dest-creds=darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nixos-containers:buildImage --dest-compress-format gzip --dest-compress-level 9 environment: GITEA_KEY: from_secret: DOCKER_KEY diff --git a/flake.nix b/flake.nix index 9191e8d..08fd8ac 100644 --- a/flake.nix +++ b/flake.nix @@ -41,8 +41,9 @@ echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf mkdir /etc/containers echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json - mkdir -p /nix/inputs - ln ${nixpkgs} /nix/inputs/nixpkgs + mkdir -p /etc/nix/inputs + mkdir /tmp + ln ${nixpkgs} /etc/nix/inputs/nixpkgs ''; }; };