add docker

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-23 09:08:58 +01:00
parent a8b135d3e2
commit 2ac0b80994
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 23 additions and 0 deletions

View file

@ -34,6 +34,7 @@
./services/iscsi.nix
./services/samba.nix
./services/drone.nix
./services/docker.nix
];
hardware.cpu.amd.updateMicrocode = true;
@ -279,4 +280,9 @@
};
};
};
virtualisation.docker.daemon.settings = {
storage-opts = [
"zfs.fsname=tank/docker"
];
};
}

View file

@ -19,6 +19,7 @@
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-ssd
./services/postgres.nix
./services/docker.nix
];
hardware.cpu.amd.updateMicrocode = true;
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "k10temp"];
@ -226,4 +227,9 @@
384000
];
services.pipewire.config.pipewire."context.properties"."default.clock.quantum" = 8192;
virtualisation.docker.daemon.settings = {
storage-opts = [
"zfs.fsname=hdd/docker"
];
};
}

View file

@ -0,0 +1,11 @@
{...}: {
virtualisation.docker = {
autoPrune = {
dates = "weekly";
enable = true;
flags = ["--all"];
};
enable = true;
storageDriver = "zfs";
};
}