about summary refs log tree commit diff
path: root/hosts/common/system/boot.nix
blob: 75433eb4e603350839609ef629ccab211f497f3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs, config, lib, ... }:

{
  boot = {
    loader = {
      # Use the systemd-boot EFI boot loader.
      systemd-boot.enable = true;
       # Prohibits gaining root access by passing init=/bin/sh as a kernel parameter
      systemd-boot.editor = false;
      efi.canTouchEfiVariables = true;
    };

    kernelPackages = pkgs.linuxPackages_latest;
    tmpOnTmpfs = true;
  };
}