refactor: add SystemStats singleton + nova-stats daemon for cpu/mem polling

This commit is contained in:
Damocles 2026-04-15 02:10:45 +02:00
parent 71a843e0f3
commit 136ff53cb5
13 changed files with 371 additions and 196 deletions

12
nix/stats-daemon.nix Normal file
View file

@ -0,0 +1,12 @@
{ lib, rustPlatform }:
rustPlatform.buildRustPackage {
pname = "nova-stats";
version = "0.1.0";
src = lib.cleanSource ../stats-daemon;
cargoLock.lockFile = ../stats-daemon/Cargo.lock;
meta = {
description = "System stats daemon for nova-shell";
mainProgram = "nova-stats";
platforms = lib.platforms.linux;
};
}