https://github.com/roosoft/nixlib
https://github.com/roosoft/nixlib
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/roosoft/nixlib
- Owner: RooSoft
- Created: 2024-03-19T18:14:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T18:25:08.000Z (over 2 years ago)
- Last Synced: 2025-03-15T04:35:53.758Z (over 1 year ago)
- Language: Nix
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nixlib
## Add to a flake project
```nix
inputs.nixlib.url = "github:roosoft/nixlib";
outputs = {nixlib}: let
hostname = "dummy";
mac = nixlib.network.createMacAddress hostname;
in {
...
}
```
## Test in the REPL
```bash
nix repl
```
```nix
:lf github:roosoft/nixlib
network.createMacAddress "dummy"
```
```
"b2:a2:c9:62:50:61"
```