forked from pub-solar/os
Move ci-runner to user and add git, virsh and nix to path
This commit is contained in:
parent
0b229a771e
commit
e3d76f1999
|
@ -10,7 +10,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.services.ci-runner = {
|
systemd.user.services.ci-runner = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
description = "CI runner for the PubSolarOS repository that can run test VM instances with KVM.";
|
description = "CI runner for the PubSolarOS repository that can run test VM instances with KVM.";
|
||||||
|
@ -20,6 +20,8 @@ in
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
path = "${pkgs.git}/bin:${pkgs.nix}/bin:${pkgs.libvirt}/bin";
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" "libvirtd.service" ];
|
after = [ "network.target" "libvirtd.service" ];
|
||||||
|
|
||||||
|
@ -29,7 +31,7 @@ in
|
||||||
age.secrets."drone-runner-exec-config" = {
|
age.secrets."drone-runner-exec-config" = {
|
||||||
file = "${self}/secrets/drone-runner-exec-config";
|
file = "${self}/secrets/drone-runner-exec-config";
|
||||||
mode = "700";
|
mode = "700";
|
||||||
owner = "root";
|
owner = psCfg.user.name;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue