Switch universe to klipper, part 1

This commit is contained in:
Nathan McCarty 2023-10-07 20:28:01 -04:00
parent e95ae14387
commit 5bb4903f24
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 9 additions and 14 deletions

View File

@ -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;
};
}