This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nix build .#nixosConfigurations.demo.config.system.build.toplevel | |
trace: I'm Mr. Meeseeks! Existence is pain! | |
trace: I'm Mr. Meeseeks! Look at me! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; }; | |
outputs = { self, nixpkgs, ... }@inputs: | |
let | |
inherit (self) outputs; | |
files = builtins.readDir ./nix_configs/hosts; | |
hostnames = builtins.filter | |
(name: builtins.hasAttr name files && (files.${name} == "directory")) | |
(builtins.attrNames files); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, lib, ... }: { | |
services.languagetool = { | |
port = lib.mkDefault 7032; | |
allowOrigin = ""; # To allow access from browser addons | |
settings = { | |
# Allowed options: | |
# https://github.com/languagetool-org/languagetool/blob/master/languagetool-server/src/main/java/org/languagetool/server/HTTPServerConfig.java#L185-L205 | |
# Optional, remove unneeded files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind_host: 127.0.0.1 | |
bind_port: 80 | |
beta_bind_port: 0 | |
users: | |
- name: admin | |
password: $2a$10$HjNx9vh4qXQdl3yxvGtahuYFUOZfc3hB6vCuSJZ7oHgAxnP9GAfrO | |
auth_attempts: 5 | |
block_auth_min: 15 | |
http_proxy: "" | |
language: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, lib, ... }: | |
{ | |
imports = [ | |
./hardware-configuration.nix | |
./update-uboot.nix | |
./secrets.nix # Only sets `services.octoprint.extraConfig.api.key` | |
./octoprint.nix | |
]; | |
boot.kernelPackages = pkgs.linuxKernel.packages.linux_rpi3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: hamabase | |
platform: ESP8266 | |
board: esp8285 | |
wifi: | |
ssid: WiFi SSID | |
password: WiFi PW | |
fast_connect: True | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, lib, ... }: | |
let | |
# https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#configuration-file | |
baseconf = { | |
bind_host = "0.0.0.0"; | |
bind_port = 3000; | |
users = [{ | |
name = "dnsadmin"; | |
password = | |
"$2a$10$.pGOj.bhC1PmGvIs1z8MVuRibYFMh5JzWeArJWKSfpFPkWhv8zL6G"; # TODO: secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: h801light | |
comment: Base Configuration for H801 LED controller | |
platform: ESP8266 | |
board: esp01_1m | |
ota: | |
output: | |
- platform: esp8266_pwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nix-build \ | |
--cores 0 \ | |
'<nixos-unstable/nixos>' \ | |
-I nixos-config=image.nix \ | |
-A config.system.build.sdImage \ | |
-o result-cross \ | |
--show-trace |
NewerOlder