about summary refs log tree commit diff
path: root/users/glittershark/system
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-02T22·44-0400
committerglittershark <grfn@gws.fyi>2020-07-02T23·19+0000
commit479d5ee8f1bee10b2073e323d8971ccec9d94f02 (patch)
tree08df3e65a4c39feecb1a19faa101bd8504ebd1c4 /users/glittershark/system
parentca25c8d60022c22ce792dd3b393a996a322ac514 (diff)
refactor: Inline nixos-hardware stuff r/1177
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
Diffstat (limited to 'users/glittershark/system')
-rw-r--r--users/glittershark/system/system/machines/chupacabra.nix18
1 files changed, 15 insertions, 3 deletions
diff --git a/users/glittershark/system/system/machines/chupacabra.nix b/users/glittershark/system/system/machines/chupacabra.nix
index 5a7c00fc68cb..65e93507ce59 100644
--- a/users/glittershark/system/system/machines/chupacabra.nix
+++ b/users/glittershark/system/system/machines/chupacabra.nix
@@ -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
+  ];
 }