18 lines
367 B
Nix
18 lines
367 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
# Enable docker and use unstable version
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
package = pkgs.docker;
|
|
# Automatically prune to keep things lean
|
|
autoPrune.enable = true;
|
|
};
|
|
# Setup networking for nixos containers
|
|
networking = {
|
|
nat = {
|
|
enable = true;
|
|
internalInterfaces = [ "ve-+" ];
|
|
};
|
|
};
|
|
}
|