nix: change names of hosts

This commit is contained in:
Nico 2025-05-03 16:16:04 +10:00
parent c1719ac77b
commit 44696ee9e4
8 changed files with 44 additions and 13 deletions

View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
{
imports = [
./disko.nix
./hardware-configuration.nix
./specialisation.nix
];
networking.hostName = "nijika";
hardware.graphics.enable = true;
environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD";
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD
libva-vdpau-driver # Previously vaapiVdpau
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
# OpenCL support for intel CPUs before 12th gen
# see: https://github.com/NixOS/nixpkgs/issues/356535
# intel-compute-runtime-legacy1
vpl-gpu-rt # QSV on 11th gen or newer
intel-media-sdk # QSV up to 11th gen
intel-ocl # OpenCL support
];
services.logind.lidSwitchExternalPower = "ignore";
}