From bcffebd32bee0891892c2a11bfdcfb50e9dd9ea2 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Wed, 5 Mar 2025 06:31:45 +0800 Subject: [PATCH] refactor: move bootloader to its own file --- systems/modules/systemd-boot.nix | 7 +++++++ systems/nemesis.nix | 5 +---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 systems/modules/systemd-boot.nix diff --git a/systems/modules/systemd-boot.nix b/systems/modules/systemd-boot.nix new file mode 100644 index 0000000..0b5ead2 --- /dev/null +++ b/systems/modules/systemd-boot.nix @@ -0,0 +1,7 @@ +{ + boot.loader = { + timeout = 0; + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; +} diff --git a/systems/nemesis.nix b/systems/nemesis.nix index 36e692a..8ca0e04 100644 --- a/systems/nemesis.nix +++ b/systems/nemesis.nix @@ -7,12 +7,9 @@ ./hw-nemesis.nix ./modules/networking.nix ./modules/locale.nix + ./modules/systemd-boot.nix ]; - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "nemesis"; # Define your hostname. users.users.rafiq = {