move docker stuff to persist

This commit is contained in:
Adithya 2024-06-21 20:05:14 +05:30
parent 8344439457
commit 581bab96c3
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 8 additions and 2 deletions

View file

@ -8,7 +8,6 @@ _: {
"/var/cache/fwupd"
"/var/lib/bluetooth"
"/var/lib/btrfs"
"/var/lib/docker"
"/var/lib/fwupd"
"/var/lib/iwd"
"/var/lib/libvirt"

View file

@ -2,11 +2,18 @@
environment.systemPackages = [ pkgs.docker-credential-helpers ];
virtualisation = {
docker = {
enable = true;
enable = false;
package = pkgs.docker_26;
daemon.settings = {
data-root = "/persist/docker";
};
rootless = {
enable = true;
package = pkgs.docker_26;
setSocketVariable = true;
daemon.settings = {
data-root = "/persist/home/docker";
};
};
storageDriver = "btrfs";
};