framework: Add framework12

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer
2025-05-19 22:20:12 +08:00
parent e81fd167b3
commit a9a7323a06
5 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# [Framework Laptop 12](https://frame.work/laptop12)
## Updating Firmware
First put enable `fwupd`
```nix
services.fwupd.enable = true;
```
Then run
```sh
$ fwupdmgr update
```
- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop12.RPL.BIOS.firmware)

View File

@@ -0,0 +1,7 @@
{ config, lib, ... }:
{
imports = [
../common
../../../common/cpu/intel
];
}

View File

@@ -0,0 +1,19 @@
{ lib, config, ... }:
{
imports = [
../../../common/pc/laptop
../../../common/pc/ssd
../../bluetooth.nix
../../kmod.nix
../../framework-tool.nix
];
# Fix TRRS headphones missing a mic
# https://github.com/torvalds/linux/commit/7b509910b3ad6d7aacead24c8744de10daf8715d
boot.extraModprobeConfig = lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.13.0") ''
options snd-hda-intel model=dell-headset-multi
'';
# Needed for desktop environments to detect display orientation
hardware.sensor.iio.enable = lib.mkDefault true;
}