nixos/fwupd: Upgrade ESP path config key

This setting was renamed and moved to the main config file in fwupd 1.8.5:
5d38e0aeea

Without this patch, fwupd tries to migrate the config and crashes when it meets the immutable:

    FuEngine             migrating OverrideESPMountPoint=/boot to EspLocation
    Failed to load daemon: failed to load engine: Failed to create file ?/etc/fwupd/daemon.conf.6HZBZ1?: Read-only file system

The setting was first introduced to the module in 08547ff642 to override the store paths set during build.5d38e0aeea
This commit is contained in:
Jan Tojnar 2023-01-27 00:38:58 +01:00
parent 32e7d3f420
commit 42930c79dd

View File

@ -121,6 +121,16 @@ in {
List of plugins to be disabled.
'';
};
EspLocation = mkOption {
type = types.path;
default = config.boot.loader.efi.efiSysMountPoint;
defaultText = lib.literalExpression "config.boot.loader.efi.efiSysMountPoint";
description = lib.mdDoc ''
The EFI system partition (ESP) path used if UDisks is not available
or if this partition is not mounted at /boot/efi, /boot, or /efi
'';
};
};
};
default = {};