Initial template
This commit is contained in:
commit
6dbc617a7d
7 changed files with 176 additions and 0 deletions
25
config.nix
Normal file
25
config.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue