diff --git a/hosts/tesla-nixos/configuration.nix b/hosts/tesla-nixos/configuration.nix index aa3be1d..f8646c1 100644 --- a/hosts/tesla-nixos/configuration.nix +++ b/hosts/tesla-nixos/configuration.nix @@ -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