rpi4-nixos-template/config.nix

26 lines
582 B
Nix
Raw Permalink Normal View History

2023-12-20 00:28:10 +01:00
{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";
}