lol

Merge pull request #258299 from Arcayr/virtualisation-hostname

nixos/virtualisation: add hostname option to oci-containers.

authored by

adisbladis and committed by
GitHub
a1592fb4 d87836b3

+9
+9
nixos/modules/virtualisation/oci-containers.nix
··· 214 214 ''; 215 215 }; 216 216 217 + hostname = mkOption { 218 + type = with types; nullOr str; 219 + default = null; 220 + description = lib.mdDoc "The hostname of the container."; 221 + example = "hello-world"; 222 + }; 223 + 217 224 extraOptions = mkOption { 218 225 type = with types; listOf str; 219 226 default = []; ··· 280 287 "--log-driver=${container.log-driver}" 281 288 ] ++ optional (container.entrypoint != null) 282 289 "--entrypoint=${escapeShellArg container.entrypoint}" 290 + ++ optional (container.hostname != null) 291 + "--hostname=${escapeShellArg container.hostname}" 283 292 ++ lib.optionals (cfg.backend == "podman") [ 284 293 "--cidfile=/run/podman-${escapedName}.ctr-id" 285 294 "--cgroups=no-conmon"