aboutsummaryrefslogtreecommitdiff
path: root/profiles/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-02 19:12:43 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-02 19:12:43 -0700
commit95a60649590ce16c649e40a6263eefd0903a3ea7 (patch)
tree668b07208b1fbaf7a41446d297817a0f834721cb /profiles/default.nix
parentprofiles: move things around for btrfs (diff)
downloadinfra-95a60649590ce16c649e40a6263eefd0903a3ea7.tar.gz
profiles/default: move stuff related to boot
Diffstat (limited to '')
-rw-r--r--profiles/default.nix16
1 files changed, 16 insertions, 0 deletions
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";