diff --git a/.drone.yml b/.drone.yml index ad569d4..3937d07 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: echo '{"default": [{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json - nix-env -iA nixpkgs.skopeo - nix build '.#buildImage' - - ./result | gzip --fast | skopeo copy --dest-creds darkkirb:$GITEA_KEY docker-archive:/dev/stdin docker://git.chir.rs/darkkirb/nix-containers:buildImage --dest-compress-format zstd --dest-compress-level 12 + - ./result | gzip --fast | 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 631cd8f..9a18bb5 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,8 @@ gzip skopeo nix + coreutils + nixpkgs ]; config.Env = [ "USER=nobody" @@ -36,6 +38,8 @@ 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 ''; }; };