nix/nixos/common/modules/boot.nix

12 lines
375 B
Nix
Raw Normal View History

2023-09-22 12:45:23 +02:00
{ config, pkgs, desktop, ... }: {
# 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-09-22 12:24:24 +02:00
boot.loader.systemd-boot.enable = true;
2023-09-22 06:23:50 +02:00
boot.tmp.cleanOnBoot = true;
boot.initrd.systemd.enable = true;
boot.kernelParams = ["quiet"];
2023-09-22 12:45:23 +02:00
}