home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

installer_configuration.nix (453B)


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