me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

add pi nix config

author
Sean Aye
date (Mar 22, 2026, 8:03 PM -0400) commit 7dfe3acc parent 25bc632d change-id oslppklw
+68
+10
flake.nix
··· 86 86 ]; 87 87 specialArgs = { inherit inputs; }; 88 88 }; 89 + 90 + pi = nixpkgs.lib.nixosSystem { 91 + system = "aarch64-linux"; 92 + modules = [ 93 + "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" 94 + nixos-hardware.nixosModules.raspberry-pi-4 95 + ./hosts/pi/configuration.nix 96 + ]; 97 + specialArgs = { inherit inputs; }; 98 + }; 89 99 }; 90 100 }; 91 101 }
+2
hosts/mira/configuration.nix
··· 157 157 "google_translate" # TTS - was missing gtts module 158 158 "ecobee" # Was missing pyecobee module 159 159 "ibeacon" # Was missing ibeacon_ble module 160 + "go2rtc" # Camera streaming 161 + "generic" # Generic camera integration 160 162 ]; 161 163 config = { 162 164 homeassistant = {
+56
hosts/pi/configuration.nix
··· 1 + { pkgs, lib, ... }: 2 + 3 + { 4 + networking.hostName = "pi"; 5 + 6 + # Disable ZFS which isn't supported on Pi 7 + boot.supportedFilesystems = lib.mkForce [ "vfat" "ext4" ]; 8 + 9 + # Enable SSH for headless setup 10 + services.openssh = { 11 + enable = true; 12 + settings = { 13 + PasswordAuthentication = false; 14 + PermitRootLogin = "no"; 15 + }; 16 + }; 17 + 18 + # User config 19 + users.users.sean = { 20 + isNormalUser = true; 21 + extraGroups = [ "wheel" "video" ]; 22 + openssh.authorizedKeys.keys = [ 23 + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDCIqgZ7kedxo+mOW7YG73Vp3zel3h180y3GKvHtRsXfGlpIIvRDy7pgCBQ4AGXYD4y78URQmFohYSAPqCPOPaWcU2un3XG9KvCzEsHmsbskPonitUmCiKvrKkb6oW4jCBtd7AEtBn+AiajAQFtPZ7NN2Df3AmTypvR6Irg7R+nxnfc9NTIHmGvxSDyWcbb4pguL20sctUSqGL6xGh8q/bqhdOThSimM+z9bEUNxK/5rPhwkNniMrp4pJcUrUiAh5/4DiRFG6KT+oeg+/myoz/Z1sPvAs7u/8JDQI4RshRD8Hu0oTkRBN6Hxj478q2SXbeBUZlD6IdjP3RhGpmSecoDdtWqKbpuV3eVRtQtba3KL86GBeV/bugaOdJ1Aud+1SOFJreAAuvxzMMKT+cdQZk6oOPP148DA/No+mDm/2S43lcdCXh79wA6YRAmKQ8jmZxTCtPutrvuZK1rguvvUlEoG/vhdNHh7eDa4Td07V6bjCRPUl8qk/e4M0E3pwsTlZc=" 24 + ]; 25 + }; 26 + 27 + # Allow sudo without password for wheel group 28 + security.sudo.wheelNeedsPassword = false; 29 + 30 + # Camera support 31 + hardware.raspberry-pi."4" = { 32 + fkms-3d.enable = true; 33 + }; 34 + 35 + # go2rtc for camera streaming to Home Assistant 36 + services.go2rtc = { 37 + enable = true; 38 + settings = { 39 + streams = { 40 + picam = "exec:rpicam-vid -t 0 --inline --width 1920 --height 1080 --framerate 30 -o -"; 41 + }; 42 + }; 43 + }; 44 + 45 + # Networking 46 + networking.networkmanager.enable = true; 47 + 48 + # Firewall 49 + networking.firewall.allowedTCPPorts = [ 50 + 22 # SSH 51 + 1984 # go2rtc API 52 + 8554 # RTSP 53 + ]; 54 + 55 + system.stateVersion = "24.11"; 56 + }