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/majestix.nix | 7 ++++++- host/software/server/runner.nix | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 host/software/server/runner.nix diff --git a/host/majestix.nix b/host/majestix.nix index 23cac16..f67d1b6 100644 --- a/host/majestix.nix +++ b/host/majestix.nix @@ -4,6 +4,7 @@ imports = [ ./hardware/majestix.nix ./software/desktop + ./software/server/runner.nix ]; boot = { @@ -27,7 +28,11 @@ networkmanager.enable = true; }; - users.extraUsers.common.extraGroups = [ "networkmanager" ]; + virtualisation.libvirtd.enable = true; + programs.dconf.enable = true; + environment.systemPackages = with pkgs; [ virt-manager ]; + + users.extraUsers.common.extraGroups = [ "networkmanager" "libvirtd" ]; services = { acpid.enable = true; 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