alpha
Login
or
Join now
seanaye.bsky.social
/
nixos-config
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
me like nix
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add pi nix config
author
Sean Aye
date
3 months ago
(Mar 22, 2026, 8:03 PM -0400)
commit
7dfe3acc
7dfe3acc92437c00a822089712f047fe61fc62e7
parent
25bc632d
25bc632dca9900b073c567331e5c48cec05dbe5a
change-id
oslppklw
oslppklwkrvpmnooqtkvtywksvqmkwwu
+68
3 changed files
Expand all
Collapse all
Unified
Split
flake.nix
hosts
mira
configuration.nix
pi
configuration.nix
+10
flake.nix
Reviewed
···
86
86
];
87
87
specialArgs = { inherit inputs; };
88
88
};
89
89
+
90
90
+
pi = nixpkgs.lib.nixosSystem {
91
91
+
system = "aarch64-linux";
92
92
+
modules = [
93
93
+
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
94
94
+
nixos-hardware.nixosModules.raspberry-pi-4
95
95
+
./hosts/pi/configuration.nix
96
96
+
];
97
97
+
specialArgs = { inherit inputs; };
98
98
+
};
89
99
};
90
100
};
91
101
}
+2
hosts/mira/configuration.nix
Reviewed
···
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
160
+
"go2rtc" # Camera streaming
161
161
+
"generic" # Generic camera integration
160
162
];
161
163
config = {
162
164
homeassistant = {
+56
hosts/pi/configuration.nix
Reviewed
···
1
1
+
{ pkgs, lib, ... }:
2
2
+
3
3
+
{
4
4
+
networking.hostName = "pi";
5
5
+
6
6
+
# Disable ZFS which isn't supported on Pi
7
7
+
boot.supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
8
8
+
9
9
+
# Enable SSH for headless setup
10
10
+
services.openssh = {
11
11
+
enable = true;
12
12
+
settings = {
13
13
+
PasswordAuthentication = false;
14
14
+
PermitRootLogin = "no";
15
15
+
};
16
16
+
};
17
17
+
18
18
+
# User config
19
19
+
users.users.sean = {
20
20
+
isNormalUser = true;
21
21
+
extraGroups = [ "wheel" "video" ];
22
22
+
openssh.authorizedKeys.keys = [
23
23
+
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDCIqgZ7kedxo+mOW7YG73Vp3zel3h180y3GKvHtRsXfGlpIIvRDy7pgCBQ4AGXYD4y78URQmFohYSAPqCPOPaWcU2un3XG9KvCzEsHmsbskPonitUmCiKvrKkb6oW4jCBtd7AEtBn+AiajAQFtPZ7NN2Df3AmTypvR6Irg7R+nxnfc9NTIHmGvxSDyWcbb4pguL20sctUSqGL6xGh8q/bqhdOThSimM+z9bEUNxK/5rPhwkNniMrp4pJcUrUiAh5/4DiRFG6KT+oeg+/myoz/Z1sPvAs7u/8JDQI4RshRD8Hu0oTkRBN6Hxj478q2SXbeBUZlD6IdjP3RhGpmSecoDdtWqKbpuV3eVRtQtba3KL86GBeV/bugaOdJ1Aud+1SOFJreAAuvxzMMKT+cdQZk6oOPP148DA/No+mDm/2S43lcdCXh79wA6YRAmKQ8jmZxTCtPutrvuZK1rguvvUlEoG/vhdNHh7eDa4Td07V6bjCRPUl8qk/e4M0E3pwsTlZc="
24
24
+
];
25
25
+
};
26
26
+
27
27
+
# Allow sudo without password for wheel group
28
28
+
security.sudo.wheelNeedsPassword = false;
29
29
+
30
30
+
# Camera support
31
31
+
hardware.raspberry-pi."4" = {
32
32
+
fkms-3d.enable = true;
33
33
+
};
34
34
+
35
35
+
# go2rtc for camera streaming to Home Assistant
36
36
+
services.go2rtc = {
37
37
+
enable = true;
38
38
+
settings = {
39
39
+
streams = {
40
40
+
picam = "exec:rpicam-vid -t 0 --inline --width 1920 --height 1080 --framerate 30 -o -";
41
41
+
};
42
42
+
};
43
43
+
};
44
44
+
45
45
+
# Networking
46
46
+
networking.networkmanager.enable = true;
47
47
+
48
48
+
# Firewall
49
49
+
networking.firewall.allowedTCPPorts = [
50
50
+
22 # SSH
51
51
+
1984 # go2rtc API
52
52
+
8554 # RTSP
53
53
+
];
54
54
+
55
55
+
system.stateVersion = "24.11";
56
56
+
}