fxkit 0.1.0

Useful utilities for writting Rust CLI tools
Documentation
1
2
3
4
5
6
7
8
9
use crate::core::os::unix::linux::nixos::running_on_nixos;

/// Detects if running on NixOS, if yes then true otherwise false
/// # Safety
/// This function is completely safe
#[unsafe(no_mangle)]
pub extern "C" fn fxkit_running_on_nixos() -> bool {
    running_on_nixos()
}