{ 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";
        liveRestore = true;
    };

    environment.systemPackages = with pkgs; [ 
      docker-compose 
      ctop
    ];
    networking.firewall.allowedTCPPorts = [
      8080 30003 30005
    ];
}


# Docker Compose file for PiAware:
# version: '3'
#
#services:
#  piaware:
#    image: ghcr.io/sdr-enthusiasts/docker-piaware:latest
#    tty: true
#    container_name: piaware
#    restart: always
#    devices:
#      - /dev/bus/usb:/dev/bus/usb
#    ports:
#      - 8080:80
#      - 30003:30003
#      - 30005:30005
#    environment:
#      - TZ="Asia/Tokyo"
#      - LAT=35.6837777585358
#      - LONG=135.02715404216545
#      - FEEDER_ID=cdca89ee-6612-4707-b0bb-ffb78d156c47
#      - RECEIVER_TYPE=rtlsdr
#    tmpfs:
#      - /run:exec,size=64M
#      - /var/log