Skip to content

Commit

Permalink
move power meter from HOST-01 to HOST-03
Browse files Browse the repository at this point in the history
  • Loading branch information
Czichy committed Feb 9, 2025
1 parent 286ec1f commit f424398
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 7 additions & 4 deletions hosts/HL-1-MRZ-HOST-03/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@
# ------------------------------
# | ADDITIONAL SYSTEM PACKAGES |
# ------------------------------
# environment.systemPackages = with pkgs; [
# networkmanagerapplet # need this to configure L2TP ipsec
# wireguard-tools
# ];
environment.systemPackages = with pkgs; [
pkg-config
pciutils # A collection of programs for inspecting and manipulating configuration of PCI devices
usbutils # Tools for working with USB devices, such as lsusb
minicom # Modem control and terminal emulation program
inputs.power-meter.packages.${pkgs.system}.power-meter
];

# ----------------------------
# | ADDITIONAL USER PACKAGES |
Expand Down
5 changes: 5 additions & 0 deletions hosts/HL-1-MRZ-HOST-03/guests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
nodes,
...
}: {
# USB pass-through for power meter
services.udev.extraRules = ''
# Lesekopf - Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_015ACA59
SUBSYSTEM=="usb", ATTR{idVendor}=="10c4", ATTR{idProduct}=="ea60", GROUP="kvm"
'';
tensorfiles.services.microvm = {
enable = true;
guests = let
Expand Down

0 comments on commit f424398

Please sign in to comment.