56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
|
../../modules/common/common.nix
|
|
../../modules/nixos/bootloader.nix
|
|
../../modules/nixos/user.nix
|
|
../../modules/nixos/noctalia.nix
|
|
../../modules/nixos/ssh.nix
|
|
../../modules/nixos/bluetooth.nix
|
|
../../modules/nixos/niri.nix
|
|
../../modules/nixos/nm.nix
|
|
../../modules/nixos/sound.nix
|
|
../../modules/nixos/steam.nix
|
|
../../modules/nixos/env.nix
|
|
../../modules/nixos/docker.nix
|
|
];
|
|
|
|
networking.hostName = "thinkpad";
|
|
|
|
i18n.defaultLocale = "en_CA.UTF-8";
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
# Required for modern Intel GPUs (Xe iGPU and ARC)
|
|
intel-media-driver # VA-API (iHD) userspace
|
|
vpl-gpu-rt # oneVPL (QSV) runtime
|
|
|
|
# Optional (compute / tooling):
|
|
#intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
|
|
# NOTE: 'intel-ocl' also exists as a legacy package; not recommended for Arc/Xe.
|
|
# libvdpau-va-gl # Only if you must run VDPAU-only apps
|
|
];
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
LIBVA_DRIVER_NAME = "iHD"; # Prefer the modern iHD backend
|
|
# VDPAU_DRIVER = "va_gl"; # Only if using libvdpau-va-gl
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wget
|
|
git
|
|
curl
|
|
lsof
|
|
];
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|