nixos/stream: Add OctoPrint
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				CI / Check, build and cache Nix flake (push) Failing after 2m16s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	CI / Check, build and cache Nix flake (push) Failing after 2m16s
				
			This commit is contained in:
		@@ -43,6 +43,38 @@
 | 
			
		||||
          };
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
        services = {
 | 
			
		||||
          mjpg-streamer = {
 | 
			
		||||
            enable = true;
 | 
			
		||||
            inputPlugin = "input_uvc.so";
 | 
			
		||||
            outputPlugin = "output_http.so -w @www@ -n -p 5050";
 | 
			
		||||
          };
 | 
			
		||||
          octoprint = {
 | 
			
		||||
            enable = true;
 | 
			
		||||
            host = "::";
 | 
			
		||||
            extraConfig = {
 | 
			
		||||
              plugins = {
 | 
			
		||||
                classicwebcam = {
 | 
			
		||||
                  snapshot = "http://${config.networking.fqdn}:5050/?action=snapshot";
 | 
			
		||||
                  stream = "http://${config.networking.fqdn}:5050/?action=stream";
 | 
			
		||||
                  streamRatio = "4:3";
 | 
			
		||||
                };
 | 
			
		||||
              };
 | 
			
		||||
              serial = {
 | 
			
		||||
                port = "/dev/ttyACM0";
 | 
			
		||||
                baudrate = 115200;
 | 
			
		||||
              };
 | 
			
		||||
              temperature.profiles = [
 | 
			
		||||
                {
 | 
			
		||||
                  bed = 60;
 | 
			
		||||
                  extruder = 215;
 | 
			
		||||
                  name = "PLA";
 | 
			
		||||
                }
 | 
			
		||||
              ];
 | 
			
		||||
            };
 | 
			
		||||
          };
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
        systemd.network = {
 | 
			
		||||
          netdevs = {
 | 
			
		||||
            "25-lan" = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user