summaryrefslogtreecommitdiff
path: root/common/docker.nix
diff options
context:
space:
mode:
authortoufic ar <contact@toufy.me>2026-07-14 17:24:08 +0300
committertoufic ar <contact@toufy.me>2026-07-14 17:24:08 +0300
commit9e48032a7d7cea20d665bc6ab666a43e549af0f4 (patch)
tree05293ae0c882c0dfd6ffb8880db82bcb06fee2ed /common/docker.nix
parent95e86e7420dbe123a2d09039233af26a09f4c84a (diff)
downloadservers-9e48032a7d7cea20d665bc6ab666a43e549af0f4.tar.gz
servers-9e48032a7d7cea20d665bc6ab666a43e549af0f4.zip
autopush docker :)
Diffstat (limited to 'common/docker.nix')
-rw-r--r--common/docker.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/docker.nix b/common/docker.nix
new file mode 100644
index 0000000..4dd9495
--- /dev/null
+++ b/common/docker.nix
@@ -0,0 +1,13 @@
+{pkgs, ...}: {
+ environment.systemPackages = with pkgs; [
+ docker-compose
+ ];
+ virtualisation = {
+ docker = {
+ enable = true;
+ autoPrune.enable = true;
+ storageDriver = "btrfs";
+ };
+ oci-containers.backend = "docker";
+ };
+}