From b1925b99a6378ea785cb3aeb3f26e390ec416da7 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 6 Feb 2023 21:19:56 +0800 Subject: [PATCH] hosts/ni: move bootloader code into hardware configuration --- hosts/ni/default.nix | 7 ------- hosts/ni/hardware-configuration.nix | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hosts/ni/default.nix b/hosts/ni/default.nix index bb1a0bf5..c2a05f3b 100644 --- a/hosts/ni/default.nix +++ b/hosts/ni/default.nix @@ -139,13 +139,6 @@ in # Enable Guix service. services.guix.enable = true; - # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot = { - enable = true; - netbootxyz.enable = true; - }; - boot.loader.efi.canTouchEfiVariables = true; - # Set your time zone. time.timeZone = "Asia/Manila"; diff --git a/hosts/ni/hardware-configuration.nix b/hosts/ni/hardware-configuration.nix index e70874af..49c5be98 100644 --- a/hosts/ni/hardware-configuration.nix +++ b/hosts/ni/hardware-configuration.nix @@ -12,6 +12,13 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + # Use the systemd-boot EFI boot loader. + boot.loader.systemd-boot = { + enable = true; + netbootxyz.enable = true; + }; + boot.loader.efi.canTouchEfiVariables = true; + fileSystems."/" = { label = "root"; options = [