Update framework config
This commit is contained in:
parent
238866e5f1
commit
16ae890458
5 changed files with 80 additions and 51 deletions
|
@ -24,7 +24,22 @@ in
|
|||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
security.rtkit.enable = true;
|
||||
services.xserver.displayManager.lightdm.enable = false;
|
||||
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
|
||||
'';
|
||||
};
|
||||
xserver.displayManager.lightdm.enable = false;
|
||||
};
|
||||
|
||||
# Wireguard stuff, to-do make better
|
||||
networking.firewall = {
|
||||
|
|
|
@ -12,23 +12,8 @@
|
|||
artPkgs.enable = true;
|
||||
};
|
||||
|
||||
system.nixos.tags = [ "Nya_Beginnings" ];
|
||||
|
||||
services.logind.powerKey = "ignore";
|
||||
services.logind.powerKeyLongPress = "poweroff";
|
||||
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;
|
||||
|
@ -36,53 +21,64 @@
|
|||
time.timeZone = "America/Lost_Angeles";
|
||||
|
||||
boot.kernelParams = [
|
||||
#"intel_pstate=no_hwp"
|
||||
"kernel.yama.ptrace_scope=0"
|
||||
#"mem_sleep_default=deep"
|
||||
"acpi_osi=\"!Windows 2020\""
|
||||
"module_blacklist=hid_sensor_hub"
|
||||
#"i915.enable_guc=7"
|
||||
"intel_iommu=on"
|
||||
"iommu=pt"
|
||||
"nvme.noacpi=1"
|
||||
#"i915.enable_guc=7"
|
||||
"kernel.yama.ptrace_scope=0"
|
||||
];
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.settings.General.Experimental = true;
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-compute-runtime
|
||||
intel-media-driver
|
||||
];
|
||||
extraPackages = lib.attrVals [
|
||||
"intel-compute-runtime"
|
||||
"intel-media-driver"
|
||||
] pkgs;
|
||||
};
|
||||
|
||||
systemd.extraConfig =
|
||||
"AllowedCPUs=8-15"
|
||||
;
|
||||
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_HWP_DYN_BOOST_ON_BAT = false;
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
|
||||
|
||||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 50;
|
||||
|
||||
#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
|
||||
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";
|
||||
RUNTIME_PM_ON_BAT = true;
|
||||
WOL_DISABLE = true;
|
||||
SCHED_POWERSAVE_ON_BAT = true;
|
||||
|
||||
USB_AUTOSUSPEND = true;
|
||||
USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN = true;
|
||||
USB_EXCLUDE_AUDIO = true;
|
||||
USB_EXCLUDE_BTUSB = false;
|
||||
USB_EXCLUDE_PHONE = false;
|
||||
USB_EXCLUDE_PRINTER = true;
|
||||
|
||||
TLP_DEFAULT_MODE = "BAT";
|
||||
TLP_PERSISTENT_DEFAULT = 1;
|
||||
|
||||
#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
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue