diff options
author | Adrian Kummerlaender | 2021-08-23 13:30:46 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2021-08-23 13:38:25 +0200 |
commit | df1073ecb2c42eae043ab69a0b250caeea24731c (patch) | |
tree | d3a2877b9ad43ab0e3830cd54c40c57701de4287 /host | |
parent | 171a2a7dc1bb5dceff2692baed0b552f663b8f3b (diff) | |
download | nixos_system-df1073ecb2c42eae043ab69a0b250caeea24731c.tar nixos_system-df1073ecb2c42eae043ab69a0b250caeea24731c.tar.gz nixos_system-df1073ecb2c42eae043ab69a0b250caeea24731c.tar.bz2 nixos_system-df1073ecb2c42eae043ab69a0b250caeea24731c.tar.lz nixos_system-df1073ecb2c42eae043ab69a0b250caeea24731c.tar.xz nixos_system-df1073ecb2c42eae043ab69a0b250caeea24731c.tar.zst nixos_system-df1073ecb2c42eae043ab69a0b250caeea24731c.zip |
Add gitlab-runner to majestix
Diffstat (limited to 'host')
-rw-r--r-- | host/majestix.nix | 7 | ||||
-rw-r--r-- | host/software/server/runner.nix | 21 |
2 files changed, 27 insertions, 1 deletions
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" ]; +} |