nixos/modules/services/common-x86/default.nix

20 lines
472 B
Nix
Raw Normal View History

2023-05-29 15:20:49 +02:00
{ config, lib, ... }:
2024-01-01 13:14:24 +01:00
let cfg = config.services.az-x86;
in {
2023-05-29 15:20:49 +02:00
options = {
2024-01-01 13:14:24 +01:00
services.az-x86.enable =
lib.mkEnableOption "Enable options for x86 systems";
2022-03-15 17:51:12 +01:00
};
2023-05-29 15:20:49 +02:00
config = lib.mkIf cfg.enable {
# Enable boot splash screen
boot.plymouth.enable = true;
# Use the systemd-boot EFI boot loader.
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
2024-01-01 13:14:24 +01:00
hardware = { cpu.intel.updateMicrocode = true; };
2022-03-15 17:51:12 +01:00
};
}