nix/nixos/common/services/docker.nix
iFargle c056588475
Some checks failed
build-linode-img / build-linode-img (push) Failing after 30s
Add nuc-server, make docker/podman common services
2023-12-19 11:17:00 +09:00

21 lines
519 B
Nix

{ inputs, pkgs, ... }: {
boot.kernel.sysctl = {
"fs.inotify.max_user_watches" = 10485760;
"fs.inotify.max_user_instances" = 1024;
};
virtualisation.docker = {
enable = true;
enableOnBoot = true;
autoPrune.enable = true;
autoPrune.dates = "weekly";
storageDriver = "btrfs";
liveRestore = true;
};
environment.systemPackages = with pkgs; [
docker-compose
ctop
inputs.compose2nix.packages.x86_64-linux.default
];
}