diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-10-13 19:04:44 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-10-13 19:04:44 -0700 |
| commit | a38c7a2dcb524e9079d14358c07e231186603a95 (patch) | |
| tree | 8a0b61e0c359a78b4464c4faed61001c1ddfad59 /modules/nixos/hardware/baremetal.nix | |
| parent | introduce a module for digital ocean droplet (diff) | |
| download | infra-a38c7a2dcb524e9079d14358c07e231186603a95.tar.gz | |
introduce a module for baremetal machines
Diffstat (limited to 'modules/nixos/hardware/baremetal.nix')
| -rw-r--r-- | modules/nixos/hardware/baremetal.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/nixos/hardware/baremetal.nix b/modules/nixos/hardware/baremetal.nix new file mode 100644 index 0000000..884fa00 --- /dev/null +++ b/modules/nixos/hardware/baremetal.nix @@ -0,0 +1,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; + }; +} |
