blob: 04ef71e802371acac76d8115b257739ec141d1d8 (
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
76
77
78
79
|
{ config, pkgs, lib, ... }:
{
vuizvui.user.devhell.profiles.base.enable = true;
boot = {
loader.grub = {
enable = true;
version = 2;
devices = [
"/dev/disk/by-id/ata-ST31500541AS_6XW0NK21"
"/dev/disk/by-id/ata-ST31500541AS_6XW0P0CW"
"/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNSAG848626F"
"/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNSAG848674K"
];
};
initrd = {
availableKernelModules = [ "ehci_pci" "ahci" "firewire_ohci" "usbhid" "usb_storage" ];
kernelModules = [ "fuse" ];
};
kernelParams = [ "pci=noaer" ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
blacklistedKernelModules = [ "pcspkr" ];
};
hardware = {
opengl = {
extraPackages = [ pkgs.vaapiVdpau ];
};
};
fileSystems."/" = {
label = "nixos";
fsType = "btrfs";
options = [
"autodefrag"
"space_cache"
"compress=lzo"
"noatime"
"ssd"
];
};
fileSystems."/home" = {
label = "home";
fsType = "btrfs";
options = [
"autodefrag"
"space_cache"
"compress=lzo"
"noatime"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/16bd9abd-6af5-4a24-8ea5-58adc51e9641"; }
{ device = "/dev/disk/by-uuid/279708cb-f9c3-4a37-a064-80ff85a66f88"; }
{ device = "/dev/disk/by-uuid/0c2409c3-e824-4759-a9ad-9bfcea1e73bb"; }
{ device = "/dev/disk/by-uuid/3f1835a8-5587-4963-9b6c-66ecb36059de"; }
];
nix.maxJobs = 8;
i18n = {
consoleFont = "lat9w-16";
consoleKeyMap = "dvorak";
defaultLocale = "en_US.UTF-8";
};
powerManagement.powerUpCommands = ''
${pkgs.hdparm}/sbin/hdparm -B 255 \
/dev/disk/by-id/ata-ST31500541AS_6XW0NK21
${pkgs.hdparm}/sbin/hdparm -B 255 \
/dev/disk/by-id/ata-ST31500541AS_6XW0P0CW
'';
}
|