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
{ | |
services.udev.extraRules = let | |
camSettings = pkgs.writeShellScript "setup-v4l2.sh" '' | |
${pkgs.v4l-utils}/bin/v4l2-ctl \ | |
--device $1 \ | |
--set-fmt-video=width=1920,height=1080,pixelformat=MJPG \ # Set to 1080p | |
-p 30 \ # Set to 30 FPS | |
--set-ctrl=power_line_frequency=1 \ # Set to 50Hz power line compensation | |
--set-ctrl=focus_auto=0 # Disable autofocus | |
''; |
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
{ | |
services.postgresql = { | |
enable = true; | |
ensureDatabases = [ "nextcloud" ]; | |
ensureUsers = [ | |
{ name = "nextcloud"; | |
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; | |
} | |
]; | |
}; |
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 |
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
{ 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: 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, ... }: | |
{ | |
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
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
{ 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
{ | |
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); |