blob: 247f2b189f7be2f2a1b5a2dff6f8151f895bf66e (
plain)
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
|
{ config, lib, pkgs, ... }:
{
networking = {
hostName = "nixX230";
interfaces.enp2s25.useDHCP = true;
interfaces.wlp3s0.useDHCP = true;
};
networking = {
# We want to NAT container traffic
nat = {
enable = true;
internalInterfaces = [ "ve-test" ];
externalInterface = "wlp3s0";
};
};
boot = {
loader.grub = {
device = "/dev/disk/by-id/wwn-0x50026b7682847b8f";
enable = true;
};
initrd.luks.devices = {
lvmroot = {
device = "/dev/disk/by-uuid/676e4bca-b29f-4ec8-a701-59303489c402";
preLVM = true;
};
};
};
hardware = {
acpilight.enable = true;
};
services = {
tlp = {
enable = true;
settings = {
START_CHARGE_THRESH_BAT0 = 90;
STOP_CHARGE_THRESH_BAT0 = 95;
};
};
fwupd.enable = true;
};
environment.systemPackages = with pkgs; [
linuxPackages.acpi_call
acpilight
];
}
|