forked from pub-solar/os
CI Runner
This commit is contained in:
parent
19303496b3
commit
f4eb615954
|
@ -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;
|
||||
|
|
|
@ -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}'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@ in
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
docker-compose_2
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ channels: final: prev: {
|
|||
inherit (channels.latest)
|
||||
cachix
|
||||
docker
|
||||
docker-compose_2
|
||||
docker-compose
|
||||
dhall
|
||||
discord
|
||||
element-desktop
|
||||
|
|
Loading…
Reference in a new issue