48 lines
974 B
Nix
48 lines
974 B
Nix
{
|
|
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";
|
|
}
|