This repository has no description
0

Configure Feed

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

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