dotfiles/hosts/lappy/default.nix

94 lines
2.1 KiB
Nix
Raw Normal View History

2023-08-05 21:03:24 -07:00
{ config, pkgs, lib, ... }:
2023-08-05 21:03:24 -07:00
{
imports = [
./hardware-configuration.nix
../default.nix
2023-08-05 21:03:24 -07:00
];
stitchyconf = {
artPkgs.enable = true;
};
2024-03-13 18:46:44 -07:00
services.logind.powerKey = "ignore";
services.logind.powerKeyLongPress = "poweroff";
2024-02-23 20:15:58 -08:00
networking = {
hostName = "lappy";
networkmanager.enable = true;
};
2023-08-05 21:03:24 -07:00
time.timeZone = "America/Lost_Angeles";
2024-04-01 14:09:20 -07:00
services.syncthing = {
enable = true;
user = "stitchynyan";
openDefaultPorts = true;
databaseDir = "/home/stitchynyan/.local/share/syncthing";
dataDir = "/home/stitchynyan";
};
2024-01-20 17:53:24 -08:00
boot.kernelParams = [
2024-03-31 03:10:47 -07:00
#"i915.enable_guc=7"
2024-01-20 17:53:24 -08:00
"intel_iommu=on"
"iommu=pt"
2024-03-31 03:10:47 -07:00
"kernel.yama.ptrace_scope=0"
2024-01-20 17:53:24 -08:00
];
2023-08-05 21:03:24 -07:00
2024-11-01 11:47:35 -07:00
virtualisation = {
docker.enable = true;
libvirtd.enable = true;
waydroid.enable = true;
};
hardware.bluetooth.enable = true;
2024-03-31 03:10:47 -07:00
hardware.bluetooth.settings.General.Experimental = true;
hardware.graphics = {
2024-01-20 17:53:24 -08:00
enable = true;
enable32Bit= true;
2024-03-31 03:10:47 -07:00
extraPackages = lib.attrVals [
"intel-compute-runtime"
"intel-media-driver"
] pkgs;
2024-01-20 17:53:24 -08:00
};
2024-03-31 03:10:47 -07:00
systemd.extraConfig = "AllowedCPUs=8-15";
2024-02-23 20:15:58 -08:00
services.tlp = {
enable = true;
settings = {
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
2024-03-31 03:10:47 -07:00
CPU_HWP_DYN_BOOST_ON_BAT = false;
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
2024-02-23 20:15:58 -08:00
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
2024-03-13 18:46:44 -07:00
CPU_MAX_PERF_ON_BAT = 50;
2024-02-23 20:15:58 -08:00
2024-03-31 03:10:47 -07:00
INTEL_GPU_MAX_FREQ_ON_BAT = 800;
INTEL_GPU_BOOST_FREQ_ON_BAT = 1000;
NMI_WATCHDOG = false;
PCIE_ASPM_ON_AC = "default";
PCIE_ASPM_ON_BAT = "powersupersave";
PLATFORM_PROFILE_ON_BAT = "low-power";
2024-04-19 14:09:00 -07:00
RUNTIME_PM_ON_BAT = "auto";
2024-03-31 03:10:47 -07:00
WOL_DISABLE = true;
SCHED_POWERSAVE_ON_BAT = true;
USB_AUTOSUSPEND = true;
TLP_DEFAULT_MODE = "BAT";
TLP_PERSISTENT_DEFAULT = 1;
2024-02-23 20:15:58 -08:00
2024-03-31 03:10:47 -07:00
#Optional helps save long term battery health
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
STOP_CHARGE_THRESH_BAT0 = 90; # 80 and above it stops charging
2024-02-23 20:15:58 -08:00
};
};
2024-02-23 20:15:58 -08:00
2024-01-20 17:53:24 -08:00
# Read the Docs before Changing
system.stateVersion = "23.05";
2023-08-05 21:03:24 -07:00
}