This repository has no description
1.2 kB
49 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 = ["defaults" "noatime" "ssd" "compress=lzo"];
21 };
22 "/bku" = {
23 device = "/dev/mapper/pool-bku";
24 fsType = "btrfs";
25 options = ["defaults" "noatime" "ssd" "compress=lzo"];
26 };
27 "/backups" = {
28 device = "/dev/pool/backup";
29 fsType = "ext4";
30 };
31 };
32
33 services.udev.extraRules = ''
34 SUBSYSTEM=="net", ATTR{address}=="08:11:96:0a:5d:6c", NAME="wl0"
35 SUBSYSTEM=="net", ATTR{address}=="f0:de:f1:71:cb:35", NAME="et0"
36 '';
37
38 boot = {
39 initrd.luks.devices.luksroot.device = "/dev/sda3";
40 initrd.availableKernelModules = [ "xhci_hcd" "ehci_pci" "ahci" "usb_storage" ];
41 };
42
43 services.logind.lidSwitch = "ignore";
44 services.logind.lidSwitchDocked = "ignore";
45
46 services.tlp.enable = true;
47
48 services.xserver.dpi = 80;
49}