nix/nixos/common/modules/boot.nix

11 lines
347 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
boot.loader.efi.canTouchEfiVariables = true;
2023-11-25 13:26: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
}