dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/virt/docker.nix (455B)
1## Docker Containers ##
2_: {
3 flake.modules.nixos.docker = {pkgs, ...}: {
4 virtualisation.docker.enable = true;
5 environment = {
6 persist.directories = ["/var/lib/docker"];
7 systemPackages = [pkgs.docker-compose];
8 };
9
10 # ? # Use '--add-host=host.docker.internal:host-gateway' to create containers
11 networking = {
12 firewall.trustedInterfaces = ["docker0"];
13 extraHosts = "127.0.0.1 host.docker.internal";
14 };
15 };
16}