pinwheel: Add module for podman
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
./modules/go
|
||||
./modules/nix
|
||||
./modules/spotify
|
||||
./modules/podman
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
18
hosts/pinwheel/modules/podman/default.nix
Normal file
18
hosts/pinwheel/modules/podman/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user