blob: a8b20eb2c05528d055c53e4910c930300177f7a2 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{ pkgs, ... }:
{
imports = [
../modules/workstation/physical
../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.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.cleanTmpDir = true;
networking.hostId = "008dd68a";
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.requestEncryptionCredentials = true;
fileSystems."/" = {
device = "rpool/root";
fsType = "zfs";
};
fileSystems."/home" = {
device = "rpool/home/qyliss";
fsType = "zfs";
};
fileSystems."/root" = {
device = "rpool/home/root";
fsType = "zfs";
};
fileSystems."/nix" = {
device = "rpool/nix";
fsType = "zfs";
};
fileSystems."/var" = {
device = "rpool/var";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6c2a9dd7-45b4-413a-bded-fccf682ffa36";
fsType = "ext4";
};
swapDevices = [
{
device = "/dev/disk/by-partuuid/82326179-f409-4f28-9233-805c44a04879";
randomEncryption = true;
}
];
nix.settings.max-jobs = 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 ];
}
|