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"; };
|
|
||||||
ports = [ "80:80" ];
|
|
||||||
volumes = [ "/var/octoprint:/octoprint" ];
|
|
||||||
extraOptions = [
|
|
||||||
"--device=/dev/video0:/dev/video0"
|
|
||||||
"--device=/dev/video1:/dev/video1"
|
|
||||||
"--device=/dev/ttyUSB0:/dev/ttyUSB0"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
services.moonraker = { enable = true; };
|
||||||
|
services.mainsail = {
|
||||||
|
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.mainsail;
|
||||||
|
enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue