summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/default.nix1
-rw-r--r--common/docker.nix13
2 files changed, 14 insertions, 0 deletions
diff --git a/common/default.nix b/common/default.nix
index ed96c7a..0ba70a3 100644
--- a/common/default.nix
+++ b/common/default.nix
@@ -1,6 +1,7 @@
{
imports = [
./disks.nix
+ ./docker.nix
./fail2ban.nix
./git.nix
./hardware.nix
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";
+ };
+}