blob: a62de6d651a6208f4b91e3c9dfef2af37db4f364 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 ];
}
|