read_current_closure

Function read_current_closure 

Source
pub fn read_current_closure(path: &Path) -> Option<String>
Expand description

Best-effort read of /run/current-system’s store-path basename. Returns None when the symlink doesn’t exist (fresh install, or non-NixOS host running the agent for the first time).