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
split out wifi config
author
Sean Aye
date
3 months ago
(Mar 22, 2026, 8:03 PM -0400)
commit
9cedd961
9cedd961c23b9d03145dc12938e470799f1fca23
parent
f04c5327
f04c53278e2644326c439208b689a5733fefd555
change-id
yqoltpkl
yqoltpklxooxouusqnyykxmzlsxvsrrp
+39
-35
3 changed files
Expand all
Collapse all
Unified
Split
hosts
pi-common
default.nix
wifi.nix
secrets
wifi.age
+2
-28
hosts/pi-common/default.nix
Reviewed
···
67
67
};
68
68
in
69
69
{
70
70
+
imports = [ ./wifi.nix ];
71
71
+
70
72
options.pi = {
71
73
streamName = lib.mkOption {
72
74
type = lib.types.str;
···
118
120
119
121
config = {
120
122
nix.settings.trusted-users = [ "sean" ];
121
121
-
122
122
-
# Pre-generated SSH host key for agenix decryption (shared across all Pis)
123
123
-
services.openssh.hostKeys = [
124
124
-
{
125
125
-
path = "/etc/ssh/ssh_host_ed25519_key";
126
126
-
type = "ed25519";
127
127
-
}
128
128
-
];
129
129
-
130
130
-
environment.etc."ssh/ssh_host_ed25519_key" = {
131
131
-
source = /home/sean/nixos-config/secrets/pi_host_key;
132
132
-
mode = "0600";
133
133
-
};
134
134
-
135
135
-
# Agenix configuration - use Nix store path directly so the key is available
136
136
-
# before the etc activation script runs (agenix activates before etc)
137
137
-
age.identityPaths = [ "${/home/sean/nixos-config/secrets/pi_host_key}" ];
138
138
-
age.secrets.wifi = {
139
139
-
file = ../../secrets/wifi.age;
140
140
-
mode = "0444";
141
141
-
};
142
142
-
143
143
-
# WiFi configuration using wpa_supplicant with agenix credentials
144
144
-
networking.wireless = {
145
145
-
enable = true;
146
146
-
secretsFile = config.age.secrets.wifi.path;
147
147
-
networks."GL-MT6000-6a6".pskRaw = "ext:WIFI_PSK";
148
148
-
};
149
123
150
124
# Enable DHCP for ethernet
151
125
networking.useDHCP = true;
+31
hosts/pi-common/wifi.nix
Reviewed
···
1
1
+
{ config, ... }:
2
2
+
3
3
+
{
4
4
+
# Pre-generated SSH host key for agenix decryption (shared across all Pis)
5
5
+
services.openssh.hostKeys = [
6
6
+
{
7
7
+
path = "/etc/ssh/ssh_host_ed25519_key";
8
8
+
type = "ed25519";
9
9
+
}
10
10
+
];
11
11
+
12
12
+
environment.etc."ssh/ssh_host_ed25519_key" = {
13
13
+
source = /home/sean/nixos-config/secrets/pi_host_key;
14
14
+
mode = "0600";
15
15
+
};
16
16
+
17
17
+
# Agenix configuration - use Nix store path directly so the key is available
18
18
+
# before the etc activation script runs (agenix activates before etc)
19
19
+
age.identityPaths = [ "${/home/sean/nixos-config/secrets/pi_host_key}" ];
20
20
+
age.secrets.wifi = {
21
21
+
file = ../../secrets/wifi.age;
22
22
+
mode = "0444";
23
23
+
};
24
24
+
25
25
+
# WiFi configuration using wpa_supplicant with agenix credentials
26
26
+
networking.wireless = {
27
27
+
enable = true;
28
28
+
secretsFile = config.age.secrets.wifi.path;
29
29
+
networks."GL-MT6000-6a6".pskRaw = "ext:WIFI_PSK";
30
30
+
};
31
31
+
}
+6
-7
secrets/wifi.age
Reviewed
···
1
1
age-encryption.org/v1
2
2
-
-> piv-p256 E31U2g A+spFtc3Miia7lQTmUOc+SbIG2gi3GvDUegwEcsdJ/00
3
3
-
hB3M3NGnqg9oj2Jk6uukOIE1kH1Z1ZUyd8JYPaxvKzU
4
4
-
-> ssh-ed25519 0pXr6w Zq8AqocMRa3T46I29OF55XrchCk+MuZLcb6sUZkks3A
5
5
-
Qa32oUCr7e0CEULhcGDfkIGzTXX+IabsHDEatagO5mg
6
6
-
--- 96nnTQPL3aJmfnbfT8M6S6QBM+HQkEahe9rIrwercIE
7
7
-
>�ء�����i5
8
8
-
����������$G���xIp�o�����hg���n��6���u��h�9]�3�Vݵ(��/�C�u
2
2
+
-> piv-p256 E31U2g A9HIv613LCspby/dU8n74ChtD4J8LwYVQgpoid+0JOQk
3
3
+
46pjun/la4Jdaexu9Ern8aBLm/ao4QdplxkRRBOSIjQ
4
4
+
-> ssh-ed25519 0pXr6w uKpFmegZMjOLhZE+wskkoBbpHVcfXOZH7BH8iMW9PlI
5
5
+
7ppGA4WuJ4Lx9vDzca1qei3IlyMenWxqSWWgOpNXyZ8
6
6
+
--- 8bYGavsBAotXLK5GM/x0hFshjHYL7MLZRUkIEyWUoNs
7
7
+
��T�q�S�Q��0�y�H�����V�h�6���Ii$[ ��p�lF6�E:��)�