Octoprint container on universe
This commit is contained in:
parent
ac4d80a7c5
commit
4649a228c6
|
@ -69,4 +69,19 @@
|
|||
# Setup home manager
|
||||
home-manager.users.nathan = import ./home.nix;
|
||||
|
||||
# Containers
|
||||
virtualisation.oci-containers.containers = {
|
||||
# Octoprint
|
||||
"octoprint" = {
|
||||
image = "octoprint/octoprint";
|
||||
environment = { "ENABLE_MJPG_STREAMER" = "true"; };
|
||||
ports = [ "80:80" ];
|
||||
volumes = [ "/var/octoprint:/octoprint" ];
|
||||
extraOptions = [
|
||||
"--device=/dev/video0:/dev/video0"
|
||||
"--device=/dev/video1:/dev/video1"
|
||||
"--device=/dev/ttyUSB0:/dev/ttyUSB0"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue