-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnixlab.nix
75 lines (64 loc) · 1.49 KB
/
nixlab.nix
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
{
imports = [
./mosquitto.nix
./zigbee2mqtt.nix
];
boot = {
extraModprobeConfig = ''
options cfg80211 ieee80211_regdom="NL"
'';
extraModulePackages = [ ];
kernelModules = [ "kvm-intel" ];
tmp.useTmpfs = true;
kernelParams = [
"quiet"
"i915.force_probe=!46d1"
"xe.force_probe=46d1"
];
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
systemd-boot.consoleMode = "1"; # bigger font in boot menu
timeout = 1;
};
initrd = {
availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"sdhci_pci"
];
compressor = "xz";
luks.devices = {
nixlab = {
crypttabExtraOpts = [ "tpm2-device=auto" ];
device = "/dev/disk/by-uuid/3543b803-fcff-4f90-af2f-154f71a08249";
};
};
systemd = {
enable = true;
emergencyAccess = true;
};
};
};
hardware.cpu.intel.updateMicrocode = true;
security.rtkit.enable = true;
security.tpm2.enable = true;
services.fwupd.enable = true;
fileSystems."/" = {
device = "/dev/disk/by-uuid/505d260b-868b-418e-928d-d7533b573f33";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/750B-B5FE";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/78eccb23-f47b-4746-b5b5-bb157c303fda"; }
];
services.openssh.enable = true;
}