add podman
This commit is contained in:
@@ -5,7 +5,8 @@ with lib;
|
|||||||
let
|
let
|
||||||
allowedTCPPorts = [ 80 443 8065 ];
|
allowedTCPPorts = [ 80 443 8065 ];
|
||||||
allowedUDPPorts = [ ];
|
allowedUDPPorts = [ ];
|
||||||
autoUpdateContainers = true;
|
autoUpdateDockerContainers = true;
|
||||||
|
defaultContainerBackend = "docker";
|
||||||
hostName = "nixos-container-host";
|
hostName = "nixos-container-host";
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
bind
|
bind
|
||||||
@@ -149,9 +150,10 @@ in
|
|||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
oci-containers.backend = "docker";
|
podman.enable = true;
|
||||||
|
|
||||||
oci-containers.containers.watchtower = mkIf autoUpdateContainers {
|
oci-containers.backend = defaultContainerBackend;
|
||||||
|
oci-containers.containers.watchtower = mkIf autoUpdateDockerContainers {
|
||||||
image = "containrrr/watchtower:latest";
|
image = "containrrr/watchtower:latest";
|
||||||
volumes = [ "/var/run/docker.sock:/var/run/docker.sock" ];
|
volumes = [ "/var/run/docker.sock:/var/run/docker.sock" ];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
|
|||||||
Reference in New Issue
Block a user