summaryrefslogtreecommitdiff
path: root/sys/core/bootloader.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/core/bootloader.nix')
-rw-r--r--sys/core/bootloader.nix42
1 files changed, 0 insertions, 42 deletions
diff --git a/sys/core/bootloader.nix b/sys/core/bootloader.nix
deleted file mode 100644
index ff0aad5..0000000
--- a/sys/core/bootloader.nix
+++ /dev/null
@@ -1,42 +0,0 @@
-{ config, lib, ... }:
-let
- cfg = config.sys.core.bootloader;
-in
-{
- options.sys.core.bootloader = lib.mkOption {
- type = lib.types.enum [ "systemd-boot" "grub" "none" ];
- default = "systemd-boot";
- description = "which bootloader to use";
- };
- config = lib.mkMerge [
- {
- boot.loader.efi.canTouchEfiVariables = true;
- boot.supportedFilesystems = [ "ntfs" ];
- boot.kernelParams = [ "quiet" "splash" ];
- }
-
- (lib.mkIf (cfg == "systemd-boot") {
- boot.consoleLogLevel = 0;
- boot.loader = {
- systemd-boot.enable = true;
- systemd-boot.editor = false;
- timeout = 0;
- };
- })
-
- (lib.mkIf (cfg == "grub") {
- boot.loader = {
- timeout = 3;
- efi.efiSysMountPoint = "/boot";
- grub = {
- enable = true;
- device = "nodev";
- efiSupport = true;
- useOSProber = true;
-
- default = 2;
- };
- };
- })
- ];
-}