move ispons to tsla
This commit is contained in:
parent
dc457e1519
commit
383316153f
2 changed files with 7 additions and 42 deletions
|
|
@ -37,12 +37,4 @@
|
||||||
User = "alisceon";
|
User = "alisceon";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.isponsorblocktv = {
|
|
||||||
image = "ghcr.io/dmunozv04/isponsorblocktv:latest";
|
|
||||||
autoStart = true;
|
|
||||||
volumes = [
|
|
||||||
"/home/alisceon/isponsorblocktv:/app/data"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -62,38 +62,11 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.gitlab-runner = {
|
virtualisation.oci-containers.containers.isponsorblocktv = {
|
||||||
isNormalUser = true;
|
image = "ghcr.io/dmunozv04/isponsorblocktv:latest";
|
||||||
home = "/var/lib/gitlab-runner";
|
autoStart = true;
|
||||||
createHome = true;
|
volumes = [
|
||||||
shell = pkgs.bashInteractive;
|
"/home/alisceon/isponsorblocktv:/app/data"
|
||||||
extraGroups = [ "docker" "wheel" ];
|
];
|
||||||
group = "gitlab-runner";
|
|
||||||
};
|
|
||||||
|
|
||||||
users.groups.gitlab-runner = { };
|
|
||||||
users.groups.docker = { };
|
|
||||||
|
|
||||||
systemd.services.enable-linger-gitlab-runner = {
|
|
||||||
description = "Enable linger for gitlab-runner";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStart = "${pkgs.systemd}/bin/loginctl enable-linger gitlab-runner";
|
|
||||||
RemainAfterExit = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.gitlab-runner = {
|
|
||||||
enable = true;
|
|
||||||
services.ci-nspawn-docker = {
|
|
||||||
authenticationTokenConfigFile = "/var/lib/gitlab-runner/token-env";
|
|
||||||
executor = "docker";
|
|
||||||
dockerImage = "alpine:3";
|
|
||||||
dockerPrivileged = true;
|
|
||||||
dockerVolumes = [
|
|
||||||
"/var/lib/gitlab-runner/cache:/cache"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue