This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / hw / x220.nix
1.2 kB 70 lines
1{ 2 self, 3 config, 4 pkgs, 5 ... 6}: 7{ 8 imports = [ 9 (self.inputs.stockholm + "/krebs/2configs/hw/x220.nix") 10 ]; 11 12 boot = { 13 initrd.luks.devices.luksroot.device = "/dev/sda3"; 14 initrd.availableKernelModules = [ 15 "xhci_hcd" 16 "ehci_pci" 17 "ahci" 18 "usb_storage" 19 ]; 20 extraModulePackages = [ 21 config.boot.kernelPackages.tp_smapi 22 config.boot.kernelPackages.acpi_call 23 ]; 24 kernelModules = [ 25 "acpi_call" 26 "tp_smapi" 27 ]; 28 }; 29 30 environment.systemPackages = [ 31 pkgs.tpacpi-bat 32 ]; 33 34 fileSystems = { 35 "/" = { 36 device = "/dev/mapper/pool-root"; 37 fsType = "btrfs"; 38 options = [ 39 "defaults" 40 "noatime" 41 "ssd" 42 "compress=lzo" 43 ]; 44 }; 45 "/boot" = { 46 device = "/dev/sda2"; 47 }; 48 "/home" = { 49 device = "/dev/mapper/pool-home"; 50 fsType = "btrfs"; 51 options = [ 52 "defaults" 53 "noatime" 54 "ssd" 55 "compress=lzo" 56 ]; 57 }; 58 }; 59 60 services.logind.lidSwitch = "ignore"; 61 services.logind.lidSwitchDocked = "ignore"; 62 63 services.tlp.enable = true; 64 #services.tlp.extraConfig = '' 65 # START_CHARGE_THRESH_BAT0=80 66 # STOP_CHARGE_THRESH_BAT0=95 67 #''; 68 69 services.xserver.dpi = 80; 70}