2023-12-13 06:30:17 +01:00
|
|
|
{ inputs, pkgs, ... }: {
|
2023-12-02 12:11:50 +01:00
|
|
|
boot.kernel.sysctl = {
|
|
|
|
"fs.inotify.max_user_watches" = 10485760;
|
|
|
|
"fs.inotify.max_user_instances" = 1024;
|
|
|
|
};
|
2023-12-02 14:36:39 +01:00
|
|
|
|
2023-11-25 07:17:29 +01:00
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
enableOnBoot = true;
|
|
|
|
autoPrune.enable = true;
|
|
|
|
autoPrune.dates = "weekly";
|
|
|
|
storageDriver = "btrfs";
|
|
|
|
liveRestore = true;
|
|
|
|
};
|
2023-12-01 11:58:41 +01:00
|
|
|
|
2023-12-04 13:48:23 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
docker-compose
|
|
|
|
ctop
|
2023-12-13 06:30:17 +01:00
|
|
|
inputs.compose2nix.packages.x86_64-linux.default
|
2024-01-07 13:17:35 +01:00
|
|
|
lazydocker
|
2023-12-04 13:48:23 +01:00
|
|
|
];
|
2024-01-18 05:24:02 +01:00
|
|
|
|
|
|
|
# Add the docker telegraf listener
|
|
|
|
services.telegraf.inputs.docker = {};
|
2023-12-02 12:11:50 +01:00
|
|
|
}
|