From 7a09bf38afef59c6d17cb5164b41a6fea2cab0d8 Mon Sep 17 00:00:00 2001 From: alisceon Date: Mon, 29 Sep 2025 19:09:03 +0200 Subject: [PATCH] just trying things now --- hosts/tesla-nixos/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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