home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

boot.nix (438B)


      1 { config, lib, pkgs, ... }:
      2 
      3 let
      4   inherit (lib) mkOption types;
      5   cfg = config.core.boot;
      6 in
      7 {
      8   options = {
      9     core.boot.systemd-boot = mkOption {
     10       description = "Enable systemd-boot for loading";
     11       # This is meant to be disable only on a few cases (qemu images, DigitalOcean droplets, …)
     12       default = true;
     13       type = types.bool;
     14     };
     15   };
     16   config = {
     17     boot.loader.systemd-boot.enable = cfg.systemd-boot;
     18   };
     19 }