This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/profiles/hw-thinkpad-e14-amd.nix

33 lines
807 B
Nix
Raw Normal View History

2024-03-24 07:21:13 -05:00
{ config, lib, pkgs, imports, boot, ... }:
with lib;
{
boot = {
initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
2024-03-25 04:12:54 -05:00
initrd.kernelModules = [ "amdgpu" ];
2024-03-24 07:21:13 -05:00
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
2024-03-25 04:12:54 -05:00
2024-03-25 06:51:18 -05:00
# for managing/mounting ntfs
supportedFilesystems = [ "ntfs" ];
2024-03-24 07:21:13 -05:00
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
2024-03-24 17:23:35 -05:00
# why not ensure we can memtest workstatons easily?
grub.memtest86.enable = true;
2024-03-24 07:21:13 -05:00
};
};
2024-03-24 17:23:35 -05:00
# set xserver videodrivers for amp gpu
2024-03-24 07:21:13 -05:00
services.xserver.videoDrivers = [ "amdgpu" ];
2024-03-25 06:51:18 -05:00
# As this is a laptop explicitly enable nmcli (likely enabled by GUI anyway)
networking.networkmanager.enable = true;
2024-03-24 07:21:13 -05:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}