Podman: Difference between revisions
enhance: headers |
Infgotoinf (talk | contribs) m Add missing ; |
||
| (One intermediate revision by one other user not shown) | |||
| Line 15: | Line 15: | ||
"podman" | "podman" | ||
]; | ]; | ||
}|name=/etc/nixos/configuration.nix|lang=nix}} | };|name=/etc/nixos/configuration.nix|lang=nix}} | ||
A reboot or re-login might be required for the permissions to take effect after applying changes | A reboot or re-login might be required for the permissions to take effect after applying changes | ||
| Line 120: | Line 120: | ||
To avoid this issue, you might restrict its registries configuration. | To avoid this issue, you might restrict its registries configuration. | ||
You can | You can change the global registries with:<syntaxhighlight lang="nix"> | ||
virtualisation.containers.registries.search = [ "docker.io" ]; | |||
</syntaxhighlight> | |||
For user-scoped registries you can do using [[Home Manager]] manually: | |||
# User-scoped `~/.config/containers/registries` | {{File|3=# User-scoped `~/.config/containers/registries` | ||
xdg.configFile."containers/registries.conf".text = '' | xdg.configFile."containers/registries.conf".text = '' | ||
[registries.search] | [registries.search] | ||