Zander Hawke abe4ed4d19 feat(odin): added grist container, first iteration před 5 měsíci
..
containers abe4ed4d19 feat(odin): added grist container, first iteration před 5 měsíci
services 5eee56cad8 fix(odin): fixed some issues with upgrade of odin před 5 měsíci
system abe4ed4d19 feat(odin): added grist container, first iteration před 5 měsíci
users dddaa1eca1 chore(odin): update caddy plugin hash and refine home-manager setup service před 7 měsíci
README.md b6a156d92f chore(odin): organize files před 9 měsíci
default.nix abe4ed4d19 feat(odin): added grist container, first iteration před 5 měsíci

README.md

Fan Control

hwmon2/pwm1 => harddrives bay top hwmon2/pwm2 => CPU fan hwmon2/pwm4 => harddrives bay bottom hwmon2/pwm7 => mainboard bay top

Name Location Start Stop
PWM1 HDD Top 20 0
PWM4 HDD Bottom 80 60
PWM2 CPU Fan 150? 0?
PWM7 Main Top 65 60
nix run github:nix-community/nixos-anywhere -- \
  --disko-mode mount \
  --flake .#odin \
  --target-host [email protected]

Install Script

#!/usr/bin/env bash

# Create a temporary directory
temp=$(mktemp -d)

# Function to cleanup temporary directory on exit
cleanup() {
  rm -rf "$temp"
}
trap cleanup EXIT

# Create the directory where sshd expects to find the host keys
install -d -m755 "$temp/persist/etc/ssh"
install -d -m755 "$temp/etc/ssh"

# Decrypt your private key from the password store and copy it to the temporary directory
cat ./ssh_host_ed25519_key.txt > "$temp/persist/etc/ssh/ssh_host_ed25519_key"
cat ./ssh_host_rsa_key.txt > "$temp/persist/etc/ssh/ssh_host_rsa_key"
cat ./ssh_host_ed25519_key.txt > "$temp/etc/ssh/ssh_host_ed25519_key"
cat ./ssh_host_rsa_key.txt > "$temp/etc/ssh/ssh_host_rsa_key"

# Set the correct permissions so sshd will accept the key
chmod 600 "$temp/persist/etc/ssh/ssh_host_ed25519_key"
chmod 600 "$temp/persist/etc/ssh/ssh_host_rsa_key"
chmod 600 "$temp/etc/ssh/ssh_host_ed25519_key"
chmod 600 "$temp/etc/ssh/ssh_host_rsa_key"

# Install NixOS to the host system with our secrets
nix run github:nix-community/nixos-anywhere -- \
  --disko-mode mount \
  --extra-files "$temp" \
  --build-on-remote \
  --flake .#odin \
  root@[NIXOS-IP]