https://github.com/notashelf/nix-kmod-test
What the fuck is a documentation?
https://github.com/notashelf/nix-kmod-test
Last synced: about 1 year ago
JSON representation
What the fuck is a documentation?
- Host: GitHub
- URL: https://github.com/notashelf/nix-kmod-test
- Owner: NotAShelf
- License: mit
- Created: 2024-10-05T20:10:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-06T18:15:33.000Z (over 1 year ago)
- Last Synced: 2025-03-19T09:43:15.464Z (about 1 year ago)
- Language: Nix
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Experimental.
```bash
$ nixos-rebuild build-vm --flake .#gamma --builders ""
# While logged in
$ modprobe -r test # test is loaded by default, remove it
# To load it back
$ modprobe test # load previously unloaded `test` module
```
## Notes
NixOS/Nixpkgs documentation on building Linux kernels or kernel modules is
_really_ poor. You get little to no information for anything
non-conventional[^1].
### Sources
- [Fun read on writing your own kernel modules](https://blog.sourcerer.io/writing-a-simple-linux-kernel-module-d9dc3762c234)
- [Nixpkgs manual on building kernel modules](https://nixos.org/manual/nixpkgs/stable/#sec-linux-kernel-developing-modules)
(7 lines)
[^1]:
"Conventional" is doing some heavy-lifting here. A lot of the things done
here are conventional _and_ idiomatic. Documented? Absolutely fucking not.