diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
| commit | 791bc419b6dac7c70951981ef6b34cdf85828470 (patch) | |
| tree | 56d0962fdf829ae942feb1344763e54dbc3c89a3 /modules/sys/core/bootloader.nix | |
| parent | e60410393cea222b16743a1a87f29c06b9b3543b (diff) | |
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'modules/sys/core/bootloader.nix')
| -rw-r--r-- | modules/sys/core/bootloader.nix | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/sys/core/bootloader.nix b/modules/sys/core/bootloader.nix deleted file mode 100644 index dabea20..0000000 --- a/modules/sys/core/bootloader.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ config, lib, ... }: -{ - options.szpont.bootloader = lib.mkOption { - type = lib.types.enum [ "systemd-boot" "grub" "none" ]; - description = "which bootloader to use"; - }; - - config = lib.mkMerge [ - { - boot.loader.efi.canTouchEfiVariables = true; - boot.supportedFilesystems = [ "ntfs" ]; - } - - (lib.mkIf (config.szpont.bootloader == "systemd-boot") { - boot = { - kernelParams = [ "quiet" ]; - - loader = { - systemd-boot = { - enable = true; - editor = false; - }; - timeout = 0; - }; - }; - }) - - (lib.mkIf (config.szpont.bootloader == "grub") { - boot.loader.grub = { - enable = true; - device = "nodev"; - efiSupport = true; - }; - }) - ]; -} |
