Skip to content

Instantly share code, notes, and snippets.

View CRTified's full-sized avatar
🤔

Carl Richard Theodor Schneider CRTified

🤔
View GitHub Profile
@CRTified
CRTified / 1-output.txt
Created November 7, 2023 22:15
Scoping of `self` demo
$ nix build .#nixosConfigurations.demo.config.system.build.toplevel
trace: I'm Mr. Meeseeks! Existence is pain!
trace: I'm Mr. Meeseeks! Look at me!
@CRTified
CRTified / hostmcu.cfg
Last active March 26, 2024 18:45
Klipper hostmcu config on NixOS
# Relevant part from my klipper config
[mcu host]
serial: /tmp/klipper_host_mcu
[temperature_sensor Host_CPU]
sensor_type: temperature_host
sensor_path: /sys/class/thermal/thermal_zone0/temp
min_temp: 0
max_temp: 90
@CRTified
CRTified / bme_on_i2c7.nix
Last active August 30, 2025 15:01
device tree overlay for auto-configuring the BME280 on i2c7 on an rk3399
{
hardware.deviceTree.overlays = [
{
name = "bme280-on-i2c7";
dtsText = ''
/dts-v1/;
/plugin/;
/ {
compatible = "rockchip,rk3399";