feat(homelab): add dhcp lease parsing

This commit is contained in:
2026-01-02 18:15:03 -08:00
parent 8fa31858b4
commit 3005a07e28
9 changed files with 438 additions and 3 deletions

15
nix/homelab/src/error.rs Normal file
View File

@@ -0,0 +1,15 @@
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("SSH error: {0}")]
SSH(#[from] ssh2::Error),
#[error("parse error: {0}")]
Parse(String),
#[error("IO error: {0}")]
IO(#[from] std::io::Error),
#[error("command return non 0 exit code: {0}")]
ExitCode(i32),
}
pub type Result<T> = std::result::Result<T, Error>;