26 lines
582 B
Nix
26 lines
582 B
Nix
|
|
{config, ...}: {
|
||
|
|
imports = [
|
||
|
|
./hardware-configuration.nix
|
||
|
|
];
|
||
|
|
|
||
|
|
boot.loader.grub.enable = false;
|
||
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||
|
|
|
||
|
|
# File contains "WIFI_PSK=<wifi key>"
|
||
|
|
age.secrets.wifi.file = ./secrets/wifi.age;
|
||
|
|
|
||
|
|
networking.wireless = {
|
||
|
|
enable = true;
|
||
|
|
networks."<MY NETWORK>".psk = "@WIFI_PSK@";
|
||
|
|
environmentFile = config.age.secrets.wifi.path;
|
||
|
|
};
|
||
|
|
|
||
|
|
networking.hostName = "rpi4-nixos";
|
||
|
|
services.openssh.enable = true;
|
||
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
||
|
|
# My SSH key
|
||
|
|
];
|
||
|
|
|
||
|
|
system.stateVersion = "23.11";
|
||
|
|
}
|