This repository has no description
1.3 kB
64 lines
1{ self, ... }:
2{
3 imports = [
4 ./config.nix
5 (self.inputs.stockholm + "/krebs/2configs/hw/x220.nix")
6 ../../2configs/boot/coreboot.nix
7 ];
8
9 fileSystems = {
10 "/" = {
11 device = "/dev/pool/root";
12 fsType = "ext4";
13 };
14 "/boot" = {
15 device = "/dev/sda2";
16 };
17 "/home" = {
18 device = "/dev/mapper/pool-home";
19 fsType = "btrfs";
20 options = [
21 "defaults"
22 "noatime"
23 "ssd"
24 "compress=lzo"
25 ];
26 };
27 "/bku" = {
28 device = "/dev/mapper/pool-bku";
29 fsType = "btrfs";
30 options = [
31 "defaults"
32 "noatime"
33 "ssd"
34 "compress=lzo"
35 ];
36 };
37 "/backups" = {
38 device = "/dev/pool/backup";
39 fsType = "ext4";
40 };
41 };
42
43 services.udev.extraRules = ''
44 SUBSYSTEM=="net", ATTR{address}=="08:11:96:0a:5d:6c", NAME="wl0"
45 SUBSYSTEM=="net", ATTR{address}=="f0:de:f1:71:cb:35", NAME="et0"
46 '';
47
48 boot = {
49 initrd.luks.devices.luksroot.device = "/dev/sda3";
50 initrd.availableKernelModules = [
51 "xhci_hcd"
52 "ehci_pci"
53 "ahci"
54 "usb_storage"
55 ];
56 };
57
58 services.logind.lidSwitch = "ignore";
59 services.logind.lidSwitchDocked = "ignore";
60
61 services.tlp.enable = true;
62
63 services.xserver.dpi = 80;
64}