Switch universe to klipper, part 1
This commit is contained in:
parent
e95ae14387
commit
5bb4903f24
|
@ -69,19 +69,14 @@
|
|||
# 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"
|
||||
];
|
||||
};
|
||||
# Printer firmware
|
||||
services.klipper = {
|
||||
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.klipper;
|
||||
enable = true;
|
||||
};
|
||||
services.moonraker = { enable = true; };
|
||||
services.mainsail = {
|
||||
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.mainsail;
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue