Skip to content

Commit

Permalink
change laptop config
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegopyl1209 committed Jan 31, 2025
1 parent f9c887e commit 5361eac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion hosts/laptop/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{inputs, ...}: {
{inputs, pkgs, ...}: {
imports = [
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t490
inputs.nixos-hardware.nixosModules.common-pc-ssd
];
services.logind.powerKey = "ignore";
server.enable = false;

services.vnstat.enable = true;
nixos = {
amdgpu.enable = false;
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
vpl-gpu-rt # for newer GPUs on NixOS >24.05 or unstable
onevpl-intel-gpu # for newer GPUs on NixOS <= 24.05
intel-media-sdk # for older GPUs
];
};
}
2 changes: 1 addition & 1 deletion hosts/laptop/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
backlight.enable = true;
gaming = {
enable = true;
steam.enable = false;
steam.enable = true;
};
};
}

0 comments on commit 5361eac

Please sign in to comment.