blob: c994134a054c3be6921c2b485c058d79de0309a7 (
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
50
51
52
53
54
55
56
|
{ pkgs, ... }:
{
imports = [
../modules/workstation/physical
../modules/workstation/podman
../modules/nixos-hardware/lenovo/thinkpad/x220
];
hardware.enableRedistributableFirmware = true;
boot.initrd.availableKernelModules =
[ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" "i915" ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.cleanTmpDir = 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/01ac4fac-03c2-433e-9297-eb84268a0c0f";
fsType = "ext4";
};
swapDevices = [
{
device = "/dev/disk/by-partuuid/201f5472-f45e-49b7-88c9-7fd9458a30f7";
randomEncryption = true;
}
];
nix.maxJobs = 2;
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 ];
services.evscript.devices = [ "/dev/input/by-path/platform-i8042-serio-0-event" ];
}
|