about summary refs log tree commit diff
path: root/sys
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-01-05 17:24:38 +0000
committerAlyssa Ross <hi@alyssa.is>2019-01-27 15:08:16 +0000
commitfa3351f0099096419ef72d4fbc71b32c178396bc (patch)
treeb2200d2a29ebe7806f6a2fe218caf52010ca519d /sys
parentf0a202366786b44ffd486c588d9150d1fb5ecea3 (diff)
downloadnixlib-fa3351f0099096419ef72d4fbc71b32c178396bc.tar
nixlib-fa3351f0099096419ef72d4fbc71b32c178396bc.tar.gz
nixlib-fa3351f0099096419ef72d4fbc71b32c178396bc.tar.bz2
nixlib-fa3351f0099096419ef72d4fbc71b32c178396bc.tar.lz
nixlib-fa3351f0099096419ef72d4fbc71b32c178396bc.tar.xz
nixlib-fa3351f0099096419ef72d4fbc71b32c178396bc.tar.zst
nixlib-fa3351f0099096419ef72d4fbc71b32c178396bc.zip
Add config
Diffstat (limited to 'sys')
-rw-r--r--sys/x220.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/sys/x220.nix b/sys/x220.nix
new file mode 100644
index 000000000000..a62de6d651a6
--- /dev/null
+++ b/sys/x220.nix
@@ -0,0 +1,49 @@
+{ pkgs, ... }:
+
+{
+  imports = [
+    ../modules/workstation
+    ../modules/nixos-hardware/lenovo/thinkpad/x220
+  ];
+
+  hardware.enableRedistributableFirmware = true;
+
+  boot.initrd.availableKernelModules =
+    [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
+
+  boot.kernelModules = [ "kvm-intel" ];
+  boot.kernelPackages = pkgs.linuxPackages_latest;
+  boot.loader.systemd-boot.enable = true;
+
+  boot.initrd.luks.devices."nixos-decrypted".device =
+    "/dev/disk/by-uuid/bb59aa96-f934-4900-a98b-a364b8dccefe";
+
+  fileSystems."/" = {
+    device = "/dev/disk/by-uuid/002e2225-6a03-4692-bac2-f57e5588ee49";
+    fsType = "ext4";
+  };
+
+  fileSystems."/boot" = {
+    device = "/dev/disk/by-uuid/5FED-1194";
+    fsType = "vfat";
+  };
+
+  swapDevices = [
+    {
+      device = "/dev/disk/by-partuuid/201f5472-f45e-49b7-88c9-7fd9458a30f7";
+      randomEncryption = true;
+    }
+  ];
+
+  nix.maxJobs = 4;
+  powerManagement.cpuFreqGovernor = "powersave";
+
+  networking.hostName = "x220";
+
+  system.stateVersion = "18.09";
+
+  users.users.qyliss.hashedPassword = "$5$rounds=1000000$tySRQ3rdqbPOduux$NcW7CoffEScpmOyS0Ga9gE5ZNLt8PT6.2Gvwn91vQn7";
+
+  hardware.opengl.enable = true;
+  hardware.opengl.extraPackages = with pkgs; [ libGL ];
+}