From 43af8a15b95702fe27e79c1eac85a77de5a29474 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 21 Sep 2020 14:46:24 +0200 Subject: prefect: simplify dual-booting with grub2 --- system/settings/base.nix | 4 ++-- system/settings/hardware/grub2.nix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'system/settings') diff --git a/system/settings/base.nix b/system/settings/base.nix index f784b6f1..0de12d64 100644 --- a/system/settings/base.nix +++ b/system/settings/base.nix @@ -1,10 +1,10 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { imports = [ ../modules/nextdns.nix ]; - boot.loader.timeout = 1; + boot.loader.timeout = lib.mkDefault 1; environment.systemPackages = with pkgs; [ nix-index diff --git a/system/settings/hardware/grub2.nix b/system/settings/hardware/grub2.nix index 70e86e71..e0043692 100644 --- a/system/settings/hardware/grub2.nix +++ b/system/settings/hardware/grub2.nix @@ -7,6 +7,7 @@ version = 2; device = "nodev"; efiSupport = true; + useOSProber = true; }; efi.canTouchEfiVariables = true; }; -- cgit 1.4.1