aboutsummaryrefslogtreecommitdiff
path: root/modules/nixos/hardware/baremetal.nix
blob: 884fa00abdbe583d28ebd6d9b1182f9cf6c60b9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, config, ... }:
let
  cfg = config.my.modules.hardware.baremetal;
in
{
  options.my.modules.hardware.baremetal = {
    enable = lib.mkEnableOption "Baremetal hardware defaults";
  };

  config = lib.mkIf cfg.enable {
    services.fwupd.enable = true;
    hardware.enableRedistributableFirmware = true;

    boot.loader.efi.canTouchEfiVariables = true;
    boot.loader.systemd-boot.enable = true;
  };
}