Loading nixos/modules/virtualisation/oci-containers.nix +9 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,13 @@ let ''; }; hostname = mkOption { type = with types; nullOr str; default = null; description = lib.mdDoc "The hostname of the container."; example = "hello-world"; }; extraOptions = mkOption { type = with types; listOf str; default = []; Loading Loading @@ -280,6 +287,8 @@ let "--log-driver=${container.log-driver}" ] ++ optional (container.entrypoint != null) "--entrypoint=${escapeShellArg container.entrypoint}" ++ optional (container.hostname != null) "--hostname=${escapeShellArg container.hostname}" ++ lib.optionals (cfg.backend == "podman") [ "--cidfile=/run/podman-${escapedName}.ctr-id" "--cgroups=no-conmon" Loading Loading
nixos/modules/virtualisation/oci-containers.nix +9 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,13 @@ let ''; }; hostname = mkOption { type = with types; nullOr str; default = null; description = lib.mdDoc "The hostname of the container."; example = "hello-world"; }; extraOptions = mkOption { type = with types; listOf str; default = []; Loading Loading @@ -280,6 +287,8 @@ let "--log-driver=${container.log-driver}" ] ++ optional (container.entrypoint != null) "--entrypoint=${escapeShellArg container.entrypoint}" ++ optional (container.hostname != null) "--hostname=${escapeShellArg container.hostname}" ++ lib.optionals (cfg.backend == "podman") [ "--cidfile=/run/podman-${escapedName}.ctr-id" "--cgroups=no-conmon" Loading