3dprint: prepare klipper
This commit is contained in:
parent
ba1565adba
commit
07ddbb9499
|
@ -2,7 +2,10 @@
|
||||||
let
|
let
|
||||||
dev = "/dev/web_cam";
|
dev = "/dev/web_cam";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./klipper.nix
|
||||||
|
];
|
||||||
services.mjpg-streamer = {
|
services.mjpg-streamer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# new camera
|
# new camera
|
24
2configs/home/3dprint/klipper.nix
Normal file
24
2configs/home/3dprint/klipper.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
services.moonraker = {
|
||||||
|
enable = true;
|
||||||
|
address = "0";
|
||||||
|
settings = {
|
||||||
|
octoprint_compat = {};
|
||||||
|
history = {};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.fluidd.enable = true;
|
||||||
|
services.fluidd.nginx.locations."/webcam".proxyPass = "http://127.0.0.1:8080/stream";
|
||||||
|
services.nginx.clientMaxBodySize = "1000m";
|
||||||
|
|
||||||
|
services.klipper = {
|
||||||
|
enable = true;
|
||||||
|
firmwares = {
|
||||||
|
artillery = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,7 +6,7 @@ in {
|
||||||
./hardware-config.nix
|
./hardware-config.nix
|
||||||
../../2configs
|
../../2configs
|
||||||
../../2configs/home-manager
|
../../2configs/home-manager
|
||||||
../../2configs/home/3dprint.nix
|
../../2configs/home/3dprint/
|
||||||
#./hardware-config.nix
|
#./hardware-config.nix
|
||||||
{ environment.systemPackages = with pkgs;[ rsync screen curl git tmux picocom mosh ];}
|
{ environment.systemPackages = with pkgs;[ rsync screen curl git tmux picocom mosh ];}
|
||||||
# ../../2configs/tools/core.nix
|
# ../../2configs/tools/core.nix
|
||||||
|
|
Loading…
Reference in a new issue