CI Runner

This commit is contained in:
Benjamin Bädorf 2022-08-13 21:23:07 +02:00
parent 19303496b3
commit f4eb615954
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
4 changed files with 15 additions and 10 deletions

View file

@ -37,6 +37,7 @@ in
owner = psCfg.user.name;
};
pub-solar.sway.vnc.enable = true;
pub-solar.ci-runner.enable = true;
home-manager.users."${psCfg.user.name}".xdg.configFile = mkIf psCfg.sway.enable {
"sway/config.d/10-autostart.conf".source = ./.config/sway/config.d/autostart.conf;

View file

@ -6,17 +6,22 @@ let
in
{
options.pub-solar.ci-runner = {
enable = mkEnableOption "Starts a :";
enable = mkEnableOption "Enables a systemd service that runs drone-ci-runner";
};
config = mkIf cfg.enable {
home-manager = with pkgs; pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
home.packages = [
ps-signal-desktop
tdesktop
element-desktop
irssi
];
systemd.user.services.ci-runner = {
enable = true;
description = "CI runner for the PubSolarOS repository that can run test VM instances with KVM.";
serviceConfig = {
Type = "oneshot";
RemainAfterExit = "yes";
Restart = "always";
};
script = ''${pkgs.drone-runner-exec}'';
};
};
}

View file

@ -17,7 +17,6 @@ in
environment.systemPackages = with pkgs; [
docker-compose
docker-compose_2
];
};
}

View file

@ -5,7 +5,7 @@ channels: final: prev: {
inherit (channels.latest)
cachix
docker
docker-compose_2
docker-compose
dhall
discord
element-desktop