july rice
This commit is contained in:
parent
73f2340ac0
commit
89ab499605
10 changed files with 95 additions and 39 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
pkgs,
|
||||
attrs,
|
||||
...
|
||||
pkgs,
|
||||
attrs,
|
||||
...
|
||||
}: let
|
||||
# Horrid workaround for https://github.com/nix-community/home-manager/issues/1011
|
||||
homeManagerSessionVars = "/etc/profiles/per-user/${attrs.username}/etc/profile.d/hm-session-vars.sh";
|
||||
|
|
@ -24,6 +24,7 @@ in {
|
|||
loader.systemd-boot.enable = true;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
blacklistedKernelModules = ["bluetooth"];
|
||||
};
|
||||
# Networking
|
||||
networking = {
|
||||
|
|
@ -84,6 +85,7 @@ in {
|
|||
];
|
||||
};
|
||||
ledger.enable = true;
|
||||
enableAllFirmware = true;
|
||||
};
|
||||
services = {
|
||||
resolved = {
|
||||
|
|
@ -103,8 +105,8 @@ in {
|
|||
tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
START_CHARGE_THRESH_BAT0 = 40;
|
||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
||||
START_CHARGE_THRESH_BAT0 = 60;
|
||||
STOP_CHARGE_THRESH_BAT0 = 90;
|
||||
CPU_BOOST_ON_AC = 1;
|
||||
CPU_BOOST_ON_BAT = 0;
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
|
|
@ -113,11 +115,12 @@ in {
|
|||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||
PLATFORM_PROFILE_ON_AC = "performance";
|
||||
DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth";
|
||||
|
||||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 20;
|
||||
CPU_MAX_PERF_ON_BAT = 40;
|
||||
};
|
||||
};
|
||||
ratbagd.enable = true; # Logitech
|
||||
|
|
|
|||
|
|
@ -10,15 +10,20 @@
|
|||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
boot.extraModulePackages = [];
|
||||
boot = {
|
||||
initrd.availableKernelModules = ["nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
|
||||
initrd.kernelModules = ["amdgpu"];
|
||||
kernelModules = ["kvm-amd"];
|
||||
extraModulePackages = [];
|
||||
tmp = {
|
||||
useTmpfs = true;
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/f56e8356-3915-4ff8-957c-de7f9a72b326";
|
||||
fsType = "btrfs";
|
||||
options = ["compress=lzo"];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue