System/modules/docker.nix

18 lines
367 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
2021-12-20 13:37:26 -05:00
{
# Enable docker and use unstable version
virtualisation.docker = {
enable = true;
package = pkgs.docker;
2021-12-20 13:37:26 -05:00
# Automatically prune to keep things lean
autoPrune.enable = true;
};
2022-06-17 18:38:11 -04:00
# Setup networking for nixos containers
networking = {
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
};
};
2021-12-20 13:37:26 -05:00
}