add docker
This commit is contained in:
parent
a8b135d3e2
commit
2ac0b80994
3 changed files with 23 additions and 0 deletions
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
11
config/services/docker.nix
Normal file
11
config/services/docker.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{...}: {
|
||||
virtualisation.docker = {
|
||||
autoPrune = {
|
||||
dates = "weekly";
|
||||
enable = true;
|
||||
flags = ["--all"];
|
||||
};
|
||||
enable = true;
|
||||
storageDriver = "zfs";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue