Install docker
diff --git a/modules/docker.nix b/modules/docker.nix
new file mode 100644
index 0000000..666bd8c
--- /dev/null
+++ b/modules/docker.nix
@@ -0,0 +1,14 @@
+{username, ...}: {
+  config = {
+    virtualisation.docker.enable = true;
+
+    users.users.${username}.extraGroups = ["docker"];
+
+    environment.persistence."/nix/persist".directories = [
+      {
+        mode = "0710";
+        directory = "/var/lib/docker";
+      }
+    ];
+  };
+}