Switch universe to klipper, part 1
This commit is contained in:
parent
e95ae14387
commit
5bb4903f24
|
@ -69,19 +69,14 @@
|
||||||
# Setup home manager
|
# Setup home manager
|
||||||
home-manager.users.nathan = import ./home.nix;
|
home-manager.users.nathan = import ./home.nix;
|
||||||
|
|
||||||
# Containers
|
# Printer firmware
|
||||||
virtualisation.oci-containers.containers = {
|
services.klipper = {
|
||||||
# Octoprint
|
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.klipper;
|
||||||
"octoprint" = {
|
enable = true;
|
||||||
image = "octoprint/octoprint";
|
};
|
||||||
environment = { "ENABLE_MJPG_STREAMER" = "true"; };
|
services.moonraker = { enable = true; };
|
||||||
ports = [ "80:80" ];
|
services.mainsail = {
|
||||||
volumes = [ "/var/octoprint:/octoprint" ];
|
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.mainsail;
|
||||||
extraOptions = [
|
enable = true;
|
||||||
"--device=/dev/video0:/dev/video0"
|
|
||||||
"--device=/dev/video1:/dev/video1"
|
|
||||||
"--device=/dev/ttyUSB0:/dev/ttyUSB0"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue