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 = {
|
||||
isSystemUser = true;
|
||||
group = "gitea-runner";
|
||||
extraGroups = [ "docker" ];
|
||||
extraGroups = [ "podman" ];
|
||||
home = "/var/lib/gitea-runner";
|
||||
createHome = true;
|
||||
};
|
||||
|
|
@ -132,7 +132,7 @@ in {
|
|||
|
||||
systemd.services.gitea-runner-ubuntu = {
|
||||
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 = {
|
||||
DynamicUser = lib.mkForce false;
|
||||
|
|
@ -167,21 +167,13 @@ in {
|
|||
|
||||
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 = {
|
||||
enable = true;
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
};
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
backend = "podman";
|
||||
|
||||
containers = {
|
||||
# Example:
|
||||
|
|
|
|||
Loading…
Reference in a new issue