nix/nixos/common/modules/boot.nix

12 lines
404 B
Nix
Raw Normal View History

2023-09-22 12:50:54 +02:00
{ lib, config, pkgs, desktop, ... }: {
2023-09-22 12:45:23 +02:00
# IF we're booting into a GUI, load in pretty things
imports = [ ] ++ lib.optional (builtins.isString desktop) ./plymouth.nix;
2023-09-22 06:23:50 +02:00
# Bootloader
2023-11-25 13:23:19 +01:00
boot.loader.systemd-boot.enable = lib.mkForce false;
2023-09-22 06:23:50 +02:00
boot.loader.efi.canTouchEfiVariables = true;
2023-11-25 13:24:11 +01:00
# boot.loader.systemd-boot.enable = true;
2023-09-22 06:23:50 +02:00
boot.tmp.cleanOnBoot = true;
2023-11-25 13:24:11 +01:00
boot.initrd.systemd.enable = true;
2023-09-22 12:45:23 +02:00
}