From 2cbe70dd21c5eee7575de0f1b405724df61f0220 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 22 Feb 2025 20:43:32 +0800 Subject: [PATCH] feat(podman): add podman and remap docker commands to it in system config --- configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 6312c75..38cc3d0 100644 --- a/configuration.nix +++ b/configuration.nix @@ -77,7 +77,7 @@ users.users.rafiq = { isNormalUser = true; description = "Mohammad Rafiq"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "podman" ]; }; ############################## @@ -131,6 +131,16 @@ # portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; }; + virtualisation = { + # Enable common container config files in /etc/containers + containers.enable = true; + podman = { + enable = true; + dockerCompat = true; + defaultNetwork.settings.dns_enabled = true; # for compose containers to see each other + }; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave