(untested) config for stinky and diff script.

This commit is contained in:
2025-10-27 12:21:57 +00:00
parent 32a22c783d
commit 762037d17f
22 changed files with 899 additions and 37 deletions

47
hosts/stinky/default.nix Normal file
View File

@@ -0,0 +1,47 @@
{
lib,
pkgs,
config,
...
}:
{
imports = [
../../common/global
../../common/impermanence-tmpfs.nix # Use tmpfs root with /nix/persist
../../common/resource-limits.nix
../../common/sshd.nix
../../common/user-ppetru.nix
../../common/systemd-boot.nix
./hardware.nix
];
networking.hostName = "stinky";
# Tailscale configuration
services.tailscaleAutoconnect.authkey = "PLACEHOLDER"; # Will be set in secrets
# OctoPrint for 3D printer
services.octoprint = {
enable = true;
};
# Persist OctoPrint data
environment.persistence.${config.custom.impermanence.persistPath}.directories = [
"/var/lib/octoprint"
];
# Pi HQ Camera support
boot.kernelModules = [ "bcm2835-v4l2" ];
environment.systemPackages = with pkgs; [
libcamera
raspberrypi-tools
];
# Firewall: Allow access to OctoPrint
networking.firewall.allowedTCPPorts = [
5000 # OctoPrint
];
system.stateVersion = "25.05";
}