nix/nixos/common/modules/boot.nix

11 lines
347 B
Nix
Raw Normal View History

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