use podman
This commit is contained in:
parent
5414b356c8
commit
3876bb177a
1 changed files with 3 additions and 11 deletions
|
|
@ -124,7 +124,7 @@ in {
|
||||||
users.users.gitea-runner = {
|
users.users.gitea-runner = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "gitea-runner";
|
group = "gitea-runner";
|
||||||
extraGroups = [ "docker" ];
|
extraGroups = [ "podman" ];
|
||||||
home = "/var/lib/gitea-runner";
|
home = "/var/lib/gitea-runner";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
};
|
};
|
||||||
|
|
@ -132,7 +132,7 @@ in {
|
||||||
|
|
||||||
systemd.services.gitea-runner-ubuntu = {
|
systemd.services.gitea-runner-ubuntu = {
|
||||||
environment.PATH = lib.mkForce (
|
environment.PATH = lib.mkForce (
|
||||||
"${pkgs.docker}/bin:${pkgs.git}/bin:${pkgs.nodejs}/bin:/run/current-system/sw/bin:/run/wrappers/bin"
|
"${pkgs.podman}/bin:${pkgs.git}/bin:${pkgs.nodejs}/bin:/run/current-system/sw/bin:/run/wrappers/bin"
|
||||||
);
|
);
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
DynamicUser = lib.mkForce false;
|
DynamicUser = lib.mkForce false;
|
||||||
|
|
@ -167,21 +167,13 @@ in {
|
||||||
|
|
||||||
system.stateVersion = "22.05";
|
system.stateVersion = "22.05";
|
||||||
|
|
||||||
virtualisation.docker = {
|
|
||||||
enable = true;
|
|
||||||
enableOnBoot = true;
|
|
||||||
autoPrune.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Arion works with Docker, but for NixOS-based containers, you need Podman
|
|
||||||
# since NixOS 21.05.
|
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "docker";
|
backend = "podman";
|
||||||
|
|
||||||
containers = {
|
containers = {
|
||||||
# Example:
|
# Example:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue