main
 1{ ... }:
 2
 3{
 4  imports = [
 5    # Include the results of the hardware scan.
 6    ./hardware-configuration.nix
 7  ];
 8
 9  # Use the systemd-boot EFI boot loader.
10  boot.loader.systemd-boot.enable = true;
11  boot.loader.efi.canTouchEfiVariables = true;
12
13  services.openssh.enable = true;
14  users.users.root.openssh.authorizedKeys.keyFiles = [ /etc/ssh/authorized_keys.d/root ];
15
16  networking.hostName = "nixos"; # Define your hostname.
17}