From 95a60649590ce16c649e40a6263eefd0903a3ea7 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 2 May 2023 19:12:43 -0700 Subject: profiles/default: move stuff related to boot --- profiles/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'profiles/default.nix') diff --git a/profiles/default.nix b/profiles/default.nix index 31e044a..4575b13 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -1,5 +1,21 @@ { 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; + cleanTmpDir = true; + tmpOnTmpfs = true; + }; + # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; -- cgit 1.4.1