try fixing gitea ci: v8
This commit is contained in:
@@ -104,17 +104,19 @@ in
|
|||||||
let
|
let
|
||||||
runnerInstanceName = "ci-runner";
|
runnerInstanceName = "ci-runner";
|
||||||
|
|
||||||
|
ciJobContents = with pkgs; [
|
||||||
|
bashInteractive
|
||||||
|
coreutils
|
||||||
|
gitMinimal
|
||||||
|
nixVersions.latest
|
||||||
|
nodejs
|
||||||
|
cacert
|
||||||
|
];
|
||||||
|
|
||||||
ciJobImage = pkgs.dockerTools.buildLayeredImage {
|
ciJobImage = pkgs.dockerTools.buildLayeredImage {
|
||||||
name = "ci-job-image";
|
name = "ci-job-image";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = with pkgs; [
|
contents = ciJobContents;
|
||||||
bashInteractive
|
|
||||||
coreutils
|
|
||||||
gitMinimal
|
|
||||||
nixVersions.latest
|
|
||||||
nodejs
|
|
||||||
cacert
|
|
||||||
];
|
|
||||||
config = {
|
config = {
|
||||||
Cmd = [ "/bin/sh" ];
|
Cmd = [ "/bin/sh" ];
|
||||||
Env = [
|
Env = [
|
||||||
@@ -130,6 +132,10 @@ in
|
|||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModprobeConfig = "options kvm_intel nested=1";
|
boot.extraModprobeConfig = "options kvm_intel nested=1";
|
||||||
|
|
||||||
|
# volume-mounted into CI containers; must be in VM's store so
|
||||||
|
# image symlinks (/bin/node etc.) resolve through the mount
|
||||||
|
system.extraDependencies = ciJobContents;
|
||||||
|
|
||||||
microvm.writableStoreOverlay = "/nix/.rw-store";
|
microvm.writableStoreOverlay = "/nix/.rw-store";
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user