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;
|
owner = psCfg.user.name;
|
||||||
};
|
};
|
||||||
pub-solar.sway.vnc.enable = true;
|
pub-solar.sway.vnc.enable = true;
|
||||||
|
pub-solar.ci-runner.enable = true;
|
||||||
|
|
||||||
home-manager.users."${psCfg.user.name}".xdg.configFile = mkIf psCfg.sway.enable {
|
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;
|
"sway/config.d/10-autostart.conf".source = ./.config/sway/config.d/autostart.conf;
|
||||||
|
|
|
@ -6,17 +6,22 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.pub-solar.ci-runner = {
|
options.pub-solar.ci-runner = {
|
||||||
enable = mkEnableOption "Starts a :";
|
enable = mkEnableOption "Enables a systemd service that runs drone-ci-runner";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager = with pkgs; pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
|
systemd.user.services.ci-runner = {
|
||||||
home.packages = [
|
enable = true;
|
||||||
ps-signal-desktop
|
|
||||||
tdesktop
|
description = "CI runner for the PubSolarOS repository that can run test VM instances with KVM.";
|
||||||
element-desktop
|
|
||||||
irssi
|
serviceConfig = {
|
||||||
];
|
Type = "oneshot";
|
||||||
|
RemainAfterExit = "yes";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
|
||||||
|
script = ''${pkgs.drone-runner-exec}'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@ in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
docker-compose
|
docker-compose
|
||||||
docker-compose_2
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ channels: final: prev: {
|
||||||
inherit (channels.latest)
|
inherit (channels.latest)
|
||||||
cachix
|
cachix
|
||||||
docker
|
docker
|
||||||
docker-compose_2
|
docker-compose
|
||||||
dhall
|
dhall
|
||||||
discord
|
discord
|
||||||
element-desktop
|
element-desktop
|
||||||
|
|
Loading…
Reference in a new issue