feat(podman): add podman and remap docker commands to it in system config

This commit is contained in:
Mohammad Rafiq 2025-02-22 20:43:32 +08:00
parent 43aa71876d
commit 2cbe70dd21

View file

@ -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. Its perfectly fine and recommended to leave