From df1073ecb2c42eae043ab69a0b250caeea24731c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 23 Aug 2021 13:30:46 +0200 Subject: Add gitlab-runner to majestix --- host/software/server/runner.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 host/software/server/runner.nix (limited to 'host/software/server') diff --git a/host/software/server/runner.nix b/host/software/server/runner.nix new file mode 100644 index 0000000..a9d5598 --- /dev/null +++ b/host/software/server/runner.nix @@ -0,0 +1,21 @@ +{ config, pkgs, ... }: + +{ + services.gitlab-runner = { + enable = true; + services = { + olbtest = { + executor = "shell"; + registrationConfigFile = "/etc/gitlab-runner.conf"; + tagList = [ "nixos" ]; + }; + }; + }; + + users.users.gitlab-runner = { + isNormalUser = true; + shell = pkgs.fish; + }; + + nix.allowedUsers = [ "gitlab-runner" ]; +} -- cgit v1.2.3