just trying things now
This commit is contained in:
parent
630ba13743
commit
7a09bf38af
1 changed files with 11 additions and 0 deletions
|
|
@ -55,12 +55,23 @@
|
|||
# Guest (inside the nspawn container)
|
||||
config = { pkgs, lib, ... }: {
|
||||
networking.hostName = "ci-nspawn";
|
||||
networking.useHostResolvConf = true;
|
||||
time.timeZone = "UTC";
|
||||
# Docker daemon inside the container
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
users.users.gitlab-runner = {
|
||||
isSystemUser = true;
|
||||
home = "/var/lib/gitlab-runner";
|
||||
createHome = true;
|
||||
shell = pkgs.bashInteractive;
|
||||
extraGroups = [ "docker" "wheel" ];
|
||||
group = "gitlab-runner";
|
||||
};
|
||||
users.groups.gitlab-runner = { };
|
||||
users.groups.docker = { };
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker
|
||||
git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue