Compare commits

..

2 Commits

Author SHA1 Message Date
Nathan McCarty 4649a228c6
Octoprint container on universe 2023-08-05 16:21:13 -04:00
Nathan McCarty ac4d80a7c5
Add universe ssh alias 2023-08-05 16:09:43 -04:00
2 changed files with 20 additions and 0 deletions

View File

@ -39,6 +39,11 @@ with lib; {
user = "nathan";
hostname = "100.75.37.98";
};
"universe" = {
forwardAgent = true;
user = "nathan";
hostname = "100.75.37.98";
};
"shadowchild" = {
forwardAgent = true;
user = "nathan";

View File

@ -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"
];
};
};
}