Only enable fwupd on EFI systems

This commit is contained in:
Simon Bruder 2024-05-12 16:28:24 +02:00
parent 8b9a469153
commit de3e4ad1bd
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -163,8 +163,8 @@
(lib.mkIf (!config.sbruder.machine.isVm) {
# Hard drive monitoring
services.smartd.enable = lib.mkDefault true;
# Firmware updates
services.fwupd.enable = lib.mkDefault true;
# Firmware updates (only work on EFI systems, so enable only when using systemd-boot)
services.fwupd.enable = lib.mkDefault (config.boot.loader.systemd-boot.enable);
})
(lib.mkIf (!config.sbruder.full) {
documentation.enable = lib.mkDefault false;