refactor: Inline nixos-hardware stuff
As tazjin pointed out, this is little enough code that pulling it from a global channel is a little silly, so I've just inlined everything. Change-Id: I8750f139a3124135a72737c381215a6e812ce0c3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/882 Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: BuildkiteCI
This commit is contained in:
parent
ca25c8d600
commit
479d5ee8f1
1 changed files with 15 additions and 3 deletions
|
@ -1,14 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||
../modules/common.nix
|
||||
../modules/reusable/battery.nix
|
||||
<nixos-hardware/common/cpu/intel>
|
||||
<nixos-hardware/common/pc/laptop>
|
||||
../modules/tvl.nix
|
||||
];
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
networking.hostName = "chupacabra";
|
||||
|
||||
powerManagement = {
|
||||
|
@ -78,4 +77,17 @@
|
|||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
# High-DPI console
|
||||
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
|
||||
|
||||
# from nixos-hardware TODO sort this around
|
||||
services.tlp.enable = true;
|
||||
boot.kernel.sysctl."vm.swappiness" = 1;
|
||||
services.fstrim.enable = lib.mkDefault true;
|
||||
|
||||
# Intel cpu stuff
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
intel-media-driver
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue