From 504601d185fe7e5afc8d8be84d838e4806eeda34 Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Tue, 19 Nov 2024 20:08:19 +0500 Subject: [PATCH] feat: enable podman and set up container registries config --- nixos/configuration.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index f968f6c..e2fe43c 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -117,6 +117,25 @@ polkitPolicyOwners = [ "shahab" ]; }; + virtualisation = { + podman = { + enable = true; + dockerSocket.enable = true; + dockerCompat = true; + + autoPrune = { + enable = true; + dates = "weekly"; + }; + }; + + containers = { + registries = { + search = ["docker.io"]; + }; + }; + }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true;