diff --git a/README.org b/README.org index d6731fc..e77c6cf 100644 --- a/README.org +++ b/README.org @@ -502,6 +502,7 @@ acernitro = nixpkgs.lib.nixosSystem { <> <> <> + <> <> <> <> @@ -1092,11 +1093,15 @@ Docker [fn:31] is a set of platform as a service that uses OS level virtualizati { config, pkgs, ... }: { + # Enable the docker virutalization platform. virtualisation.docker = { enable = true; enableOnBoot = true; autoPrune.enable = true; }; + + # Required for the `docker' command. + users.users.chris.extraGroups = [ "docker" ]; } #+END_SRC diff --git a/flake.nix b/flake.nix index fac2abc..8746d4d 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,7 @@ ./modules/x11.nix ./modules/ssh.nix ./modules/hugo.nix + ./modules/docker.nix ./modules/flakes.nix ./modules/cachix.nix ./modules/nvidia.nix diff --git a/modules/docker.nix b/modules/docker.nix index 82d8115..081e2ab 100644 --- a/modules/docker.nix +++ b/modules/docker.nix @@ -1,9 +1,13 @@ { config, pkgs, ... }: { + # Enable the docker virutalization platform. virtualisation.docker = { enable = true; enableOnBoot = true; autoPrune.enable = true; }; + + # Required for the `docker' command. + users.users.chris.extraGroups = [ "docker" ]; }