dotfiles/hosts/lappy/default.nix

90 lines
2 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;
};
2023-08-05 21:03:24 -07:00
system.nixos.tags = [ "Nya_Beginnings" ];
2024-03-13 18:46:44 -07:00
services.logind.powerKey = "ignore";
services.logind.powerKeyLongPress = "poweroff";
2024-02-23 20:15:58 -08:00
services.resolved = {
enable = true;
dnsovertls = "opportunistic";
fallbackDns = [
"2620:fe::10#dns10.quad9.net"
"2620:fe::fe:10#dns10.quad9.net"
"9.9.9.10#dns10.quad9.net"
"149.112.112.10#dns10.quad9.net"
];
extraConfig = ''
DNS=2620:fe::10#dns10.quad9.net 2620:fe::fe:10#dns10.quad9.net 9.9.9.10#dns10.quad9.net 149.112.112.10#dns10.quad9.net
'';
};
networking = {
hostName = "lappy";
networkmanager.enable = true;
};
2023-08-05 21:03:24 -07:00
time.timeZone = "America/Lost_Angeles";
2024-01-20 17:53:24 -08:00
boot.kernelParams = [
"intel_pstate=no_hwp"
"kernel.yama.ptrace_scope=0"
"mem_sleep_default=deep"
"module_blacklist=hid_sensor_hub"
"intel_iommu=on"
"iommu=pt"
"i915.enable_guc=7"
];
2023-08-05 21:03:24 -07:00
virtualisation.libvirtd.enable = true;
hardware.bluetooth.enable = true;
2024-01-20 17:53:24 -08:00
hardware.opengl = {
enable = true;
driSupport = true;
2024-02-23 20:15:58 -08:00
driSupport32Bit = true;
2024-01-20 17:53:24 -08:00
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
];
};
2024-02-23 20:15:58 -08:00
systemd.extraConfig =
"AllowedCPUs=8-15"
;
services.tlp = {
enable = true;
settings = {
TLP_DEFAULT_MODE = "BAT";
TLP_PERSISTENT_DEFAULT = 1;
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
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
#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-01-20 17:53:24 -08:00
# Read the Docs before Changing
system.stateVersion = "23.05";
2023-08-05 21:03:24 -07:00
}