about summary refs log tree commit diff
path: root/users/glittershark/system/system
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-02T22·41-0400
committerglittershark <grfn@gws.fyi>2020-07-02T23·19+0000
commitca25c8d60022c22ce792dd3b393a996a322ac514 (patch)
tree6bb75b1b7e84cb65fea4b1da24ae6efd776be6f7 /users/glittershark/system/system
parenta564f36443f5d0c8388da52eca3d0af05c7bef2b (diff)
refactor(gs/chupacabra): Centralize all config r/1176
I previously had some stuff jammed into a hardware-configuration.nix not
committed anywhere, which is silly but also prevented building this
config as a top-level derivation, so this vendors them all in there

Change-Id: Ia76f1d75dcd44aa3e9d86a66c45176afc0946d12
Reviewed-on: https://cl.tvl.fyi/c/depot/+/881
Reviewed-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/system/system')
-rw-r--r--users/glittershark/system/system/machines/chupacabra.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/users/glittershark/system/system/machines/chupacabra.nix b/users/glittershark/system/system/machines/chupacabra.nix
index 99225e354562..5a7c00fc68cb 100644
--- a/users/glittershark/system/system/machines/chupacabra.nix
+++ b/users/glittershark/system/system/machines/chupacabra.nix
@@ -1,9 +1,12 @@
 { 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
   ];
 
   networking.hostName = "chupacabra";
@@ -47,4 +50,32 @@
       echo -1 > /sys/module/usbcore/parameters/autosuspend
     '';
   };
+
+  # From hardware-configuration.nix
+
+  boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ "kvm-intel" ];
+  boot.extraModulePackages = [ ];
+
+  fileSystems."/" =
+    { device = "/dev/mapper/cryptroot";
+      fsType = "ext4";
+    };
+
+  boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/c2fc7ce7-a45e-48a1-8cde-be966ef601db";
+
+  fileSystems."/boot" =
+    { device = "/dev/disk/by-uuid/3492-9E3A";
+      fsType = "vfat";
+    };
+
+  swapDevices =
+    [ { device = "/dev/disk/by-uuid/caa7e2ff-475b-4024-b29e-4f88f733fc4c"; }
+    ];
+
+  nix.maxJobs = lib.mkDefault 12;
+  powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+  # High-DPI console
+  console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
 }