diff options
-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" ]; +} |