From 3116b5d11cfcb37e62de112b710c0e3241585e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 6 Oct 2022 11:13:35 +0200 Subject: nixos/mrpump: add new device --- nixos/machine/mrpump.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nixos/machine/mrpump.nix (limited to 'nixos') diff --git a/nixos/machine/mrpump.nix b/nixos/machine/mrpump.nix new file mode 100644 index 0000000..818652c --- /dev/null +++ b/nixos/machine/mrpump.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + + config = { + boot.isContainer = true; + boot.loader.initScript.enable = true; + + # Gitlab worker + services.gitlab-runner = { + enable = true; + services.docker = { + registrationConfigFile = "/run/secrets/gitlab-runner-registration"; + executor = "docker"; + tagList = ["docker"]; + runUntagged = true; + description = "Docker runner"; + }; + }; + + }; + +} -- cgit v1.2.3