pinwheel: Add module for podman

This commit is contained in:
Alexander Heldt
2023-09-24 20:27:22 +02:00
parent d5b416a5b8
commit 9ab6c819e0
2 changed files with 19 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
./modules/go ./modules/go
./modules/nix ./modules/nix
./modules/spotify ./modules/spotify
./modules/podman
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@@ -0,0 +1,18 @@
{ pkgs, ... }:
{
virtualisation = {
podman = {
enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement
dockerCompat = true;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
};
home-manager.users.alex = {
home.packages = [ pkgs.podman-compose ];
};
}