stockholm/lass/2configs/hw/x220.nix

57 lines
1.3 KiB
Nix
Raw Normal View History

2019-10-14 13:37:25 +00:00
{ config, pkgs, ... }:
2017-07-23 19:10:50 +00:00
{
imports = [
<stockholm/krebs/2configs/hw/x220.nix>
];
boot = {
2020-09-27 13:35:28 +00:00
initrd.luks.devices.luksroot.device = "/dev/sda3";
2017-07-23 19:10:50 +00:00
initrd.luks.cryptoModules = [ "aes" "sha512" "sha1" "xts" ];
initrd.availableKernelModules = [ "xhci_hcd" "ehci_pci" "ahci" "usb_storage" ];
2019-10-14 13:37:25 +00:00
extraModulePackages = [
config.boot.kernelPackages.tp_smapi
config.boot.kernelPackages.acpi_call
];
kernelModules = [
"acpi_call"
"tp_smapi"
];
2017-07-23 19:10:50 +00:00
};
2019-10-14 13:37:25 +00:00
environment.systemPackages = [
pkgs.tpacpi-bat
];
2017-07-23 19:10:50 +00:00
fileSystems = {
"/" = {
device = "/dev/mapper/pool-root";
fsType = "btrfs";
options = ["defaults" "noatime" "ssd" "compress=lzo"];
};
"/boot" = {
device = "/dev/sda2";
};
"/home" = {
device = "/dev/mapper/pool-home";
fsType = "btrfs";
options = ["defaults" "noatime" "ssd" "compress=lzo"];
};
"/tmp" = {
device = "tmpfs";
fsType = "tmpfs";
options = ["nosuid" "nodev" "noatime"];
};
};
2017-12-13 17:20:44 +00:00
2019-04-13 12:48:26 +00:00
services.logind.lidSwitch = "ignore";
services.logind.lidSwitchDocked = "ignore";
2017-12-13 17:20:44 +00:00
2019-10-14 13:37:25 +00:00
services.tlp.enable = true;
2020-09-27 13:36:35 +00:00
#services.tlp.extraConfig = ''
# START_CHARGE_THRESH_BAT0=80
# STOP_CHARGE_THRESH_BAT0=95
#'';
2019-10-14 13:37:25 +00:00
2020-09-27 13:36:35 +00:00
services.xserver.dpi = 80;
2017-07-23 19:10:50 +00:00
}