Update, add docker to piaware
This commit is contained in:
parent
ce1c589651
commit
ef65508f07
2 changed files with 49 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
./docker.nix
|
||||||
];
|
];
|
||||||
# Enable distributed Builds
|
# Enable distributed Builds
|
||||||
nix.distributedBuilds = true;
|
nix.distributedBuilds = true;
|
||||||
|
|
48
nixos/hosts/piaware-rpi4/docker.nix
Normal file
48
nixos/hosts/piaware-rpi4/docker.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ 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
|
Loading…
Reference in a new issue