feat(sakuya): klipper and motion

This commit is contained in:
arcnmx 2024-09-07 14:33:04 -07:00
parent 7e7d6b01f7
commit a02778b413
10 changed files with 214 additions and 127 deletions

View file

@ -12,7 +12,6 @@ _: {
enable = true;
ports.stream.port = 41081;
};
moonraker.enable = true;
};
};
network.networks = {

View file

@ -16,9 +16,7 @@ in {
nixos.barcodebuddy-scanner
nixos.motion
nixos.cameras.kitchen
nixos.cameras.printer
nixos.cameras.logistics-webcam
nixos.klipper
./hardware-configuration.nix
];
@ -63,7 +61,7 @@ in {
description = "Logistics";
extraGroups = [
"nixbuilder"
(mkIf (!config.services.octoprint.enable && !!config.services.klipper.enable) "dialout")
(mkIf (!config.services.octoprint.enable && !config.services.klipper.enable) "dialout")
(mkIf config.networking.networkmanager.enable "networkmanager")
];
hashedPasswordFile = config.sops.secrets.logistics-user-password.path;

View file

@ -5,9 +5,6 @@ _: {
modules = [
./nixos.nix
];
deploy = {
hostname = "10.1.1.50";
};
network.networks = {
tail = {
address4 = "100.106.9.75";
@ -21,6 +18,11 @@ _: {
exports = {
services = {
tailscale.enable = true;
motion = {
enable = true;
id = "printercam";
};
moonraker.enable = true;
};
};
}

View file

@ -12,6 +12,9 @@
nixos.base
nixos.sops
nixos.tailscale
nixos.klipper
nixos.motion
nixos.cameras.printer
];
boot.loader = {
grub.enable = false;