Added nix files

This commit is contained in:
2025-03-20 15:26:29 +00:00
parent bf0779ae97
commit 5965d43eff
9 changed files with 234 additions and 0 deletions

24
hosts/laptop.nix Normal file
View File

@@ -0,0 +1,24 @@
{ config, pkgs, ... }:
{
networking.hostName = "laptop";
# Intel VA-API for GPU acceleration
hardware.opengl = {
enable = true;
driSupport = true;
extraPackages = with pkgs; [
intel-media-driver
libva-utils
];
};
boot.initrd.luks.devices = {
root = {
device = "/dev/sda2";
preLVM = true;
};
};
services.xserver.videoDrivers = [ "intel" ];
}