❄️ Dotfiles for our NixOS system configuration.
at master 493 B view raw
1{ lib, config, ... }: 2 3{ 4 options.settings.bootloader.systemd-boot = { 5 enable = lib.mkOption { 6 type = lib.types.bool; 7 default = true; 8 description = "Enable systemd-boot bootloader (UEFI)"; 9 }; 10 }; 11 12 config = 13 lib.mkIf (config.settings.bootloader.enable && config.settings.bootloader.systemd-boot.enable) 14 { 15 boot.loader = { 16 timeout = 2; 17 systemd-boot.enable = true; 18 efi.canTouchEfiVariables = true; 19 }; 20 }; 21}