{ config, pkgs, lib, ... }: { imports = [ ../../common ./hardware-configuration.nix ]; networking.hostName = "lena"; # ========================================== # 1. HARDWARE SPECIFICS (Lenovo Ideapad 5 2-in-1) # ========================================== hardware.enableAllFirmware = true; hardware.cpu.amd.updateMicrocode = true; # Graphics (AMD Radeon 780M / RDNA3) hardware.graphics = { enable = true; enable32Bit = true; }; # Ensure the amdgpu driver is used boot.initrd.kernelModules = [ "amdgpu" ]; services.xserver.videoDrivers = [ "amdgpu" ]; # ========================================== # 2. 2-IN-1 / TABLET FEATURES # ========================================== # Accelerometer for screen rotation hardware.sensor.iio.enable = true; # Touchpad/Touchscreen support (Libinput is usually default, but good to ensure) services.libinput.enable = true; # BIOS/Firmware Updates services.fwupd.enable = true; # ========================================== # 3. FINGERPRINT SCANNER # ========================================== services.fprintd.enable = true; # Matching Electra's PAM settings for consistency security.pam.services.sudo.fprintAuth = true; security.pam.services.kde.fprintAuth = true; security.pam.services.sddm.fprintAuth = false; # Keep SDDM password-only to avoid unlock loops # ========================================== # 4. POWER MANAGEMENT # ========================================== # Using power-profiles-daemon (default in common) is fine, # but for a laptop, we ensure it's prioritized over TLP for now. services.power-profiles-daemon.enable = lib.mkDefault true; }