25 lines
630 B
Nix
25 lines
630 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
|
|
lazydocker
|
|
];
|
|
|
|
# Add the docker telegraf listener
|
|
services.telegraf.extraConfig.inputs.docker = {};
|
|
users.users.telegraf.extraGroups = [ "docker" ];
|
|
}
|