From 8264c4659dbdb8d98310414badf288f8200fe242 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Wed, 3 Jun 2026 13:54:18 -0500 Subject: aliases for printer and new power control relay. moonraker power control for printer enabled and accessible via mainsail. power control python script for power control via http in moonraker --- hosts/gnuslashprinter/configuration.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'hosts/gnuslashprinter/configuration.nix') diff --git a/hosts/gnuslashprinter/configuration.nix b/hosts/gnuslashprinter/configuration.nix index 6af701a..9e1f734 100644 --- a/hosts/gnuslashprinter/configuration.nix +++ b/hosts/gnuslashprinter/configuration.nix @@ -1,5 +1,8 @@ { - imports = [ ./klipper.nix ]; + imports = [ + ./flask-relay-ctl.nix + ./klipper.nix + ]; boot._loader.enable = true; @@ -16,5 +19,11 @@ # Enable user timmy _users.timmy.enable = true; + # Name devices + services.udev.extraRules = '' + SUBSYSTEM=="tty", KERNELS=="3-9", SYMLINK+="gsp-power" + SUBSYSTEM=="tty", KERNELS=="3-10", SYMLINK+="gsp-control" + ''; + system.stateVersion = "25.11"; } -- cgit v1.2.3