-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample-configuration.nix
More file actions
43 lines (33 loc) · 1.34 KB
/
example-configuration.nix
File metadata and controls
43 lines (33 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Example NixOS configuration for Framework 16 LED Matrix Monitoring
# Add this to your configuration.nix or import it as a module
{ config, lib, pkgs, ... }:
{
# For flake users, add this to your flake.nix inputs:
# led-matrix-monitoring = {
# url = "github:timoteuszelle/led-matrix/fix/robustness-and-permission-handling";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# And add led-matrix-monitoring.nixosModules.led-matrix-monitoring to your modules list
# Enable the LED Matrix Monitoring service
services.led-matrix-monitoring = {
enable = true;
# Standard configuration
topLeft = "cpu"; # CPU usage in top-left
bottomLeft = "mem-bat"; # Memory + battery in bottom-left
topRight = "disk"; # Disk I/O in top-right
bottomRight = "net"; # Network traffic in bottom-right
# Optional: Add temperature and fan monitoring
# topRight = "temp";
# bottomRight = "fan";
# Optional: Disable keyboard shortcut (Alt+I)
# disableKeyListener = true;
# Optional: Disable plugins
# disablePlugins = true;
# Optional: Run as specific user instead of root
# user = "your-username";
};
# Optional: Add the package to system packages for manual use
# environment.systemPackages = [
# led-matrix-monitoring.packages.${pkgs.system}.default
# ];
}