mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	framework: Enable fwupd by default
Users should keep their firmware (not just BIOS) up to date. Framework 13 Intel 11-13th Gen have some components that can't be updated with fwupd, so some BIOS versions are better to be installed through the EFI shell or Windows. Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
		@@ -2,16 +2,13 @@
 | 
			
		||||
 | 
			
		||||
## Updating Firmware
 | 
			
		||||
 | 
			
		||||
First put enable `fwupd`
 | 
			
		||||
Everything is updateable through fwupd, so it's enabled by default.
 | 
			
		||||
 | 
			
		||||
```nix
 | 
			
		||||
services.fwupd.enable = true;
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Then run
 | 
			
		||||
To get the latest firmware, run:
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
 $ fwupdmgr update
 | 
			
		||||
$ fwupdmgr refresh
 | 
			
		||||
$ fwupdmgr update
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop.Ryzen7040.BIOS.firmware)
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,6 @@ in
 | 
			
		||||
    ../common/amd.nix
 | 
			
		||||
    ../../../common/cpu/amd/raphael/igpu.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  options = {
 | 
			
		||||
    hardware.framework.amd-7040.preventWakeOnAC = lib.mkOption {
 | 
			
		||||
      type = lib.types.bool;
 | 
			
		||||
@@ -30,6 +29,8 @@ in
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = {
 | 
			
		||||
    services.fwupd.enable = true;
 | 
			
		||||
 | 
			
		||||
    # Workaround applied upstream in Linux >=6.7 (on BIOS 03.03)
 | 
			
		||||
    # https://github.com/torvalds/linux/commit/a55bdad5dfd1efd4ed9ffe518897a21ca8e4e193
 | 
			
		||||
    services.udev.extraRules =
 | 
			
		||||
 
 | 
			
		||||
@@ -2,14 +2,13 @@
 | 
			
		||||
 | 
			
		||||
## Updating Firmware
 | 
			
		||||
 | 
			
		||||
First put enable `fwupd`
 | 
			
		||||
Everything is updateable through fwupd, so it's enabled by default.
 | 
			
		||||
 | 
			
		||||
```nix
 | 
			
		||||
services.fwupd.enable = true;
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Then run
 | 
			
		||||
To get the latest firmware, run:
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
 $ fwupdmgr update
 | 
			
		||||
$ fwupdmgr refresh
 | 
			
		||||
$ fwupdmgr update
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop.RyzenAI300.BIOS.firmware)
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,11 @@
 | 
			
		||||
    ../common
 | 
			
		||||
    ../common/amd.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  config = {
 | 
			
		||||
    # Everything is updateable through fwupd
 | 
			
		||||
    services.fwupd.enable = true;
 | 
			
		||||
 | 
			
		||||
    hardware.framework.laptop13.audioEnhancement.rawDeviceName =
 | 
			
		||||
      lib.mkDefault "alsa_output.pci-0000_c1_00.6.analog-stereo";
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,14 +2,13 @@
 | 
			
		||||
 | 
			
		||||
## Updating Firmware
 | 
			
		||||
 | 
			
		||||
First put enable `fwupd`
 | 
			
		||||
Everything is updateable through fwupd, so it's enabled by default.
 | 
			
		||||
 | 
			
		||||
```nix
 | 
			
		||||
services.fwupd.enable = true;
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Then run
 | 
			
		||||
To get the latest firmware, run:
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
 $ fwupdmgr update
 | 
			
		||||
$ fwupdmgr refresh
 | 
			
		||||
$ fwupdmgr update
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop.MTL.BIOS.firmware)
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,9 @@
 | 
			
		||||
    ../common/intel.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Everything is updateable through fwupd
 | 
			
		||||
  services.fwupd.enable = true;
 | 
			
		||||
 | 
			
		||||
  # Need at least 6.9 to make suspend properly
 | 
			
		||||
  # Specifically this patch: https://github.com/torvalds/linux/commit/073237281a508ac80ec025872ad7de50cfb5a28a
 | 
			
		||||
  boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.9") (
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user