some hyprland configs and other stuff

This commit is contained in:
2025-11-20 04:17:46 +03:00
parent 54b708815e
commit b1fd965700
17 changed files with 645 additions and 229 deletions
+11 -8
View File
@@ -1,3 +1,5 @@
# # Возможно проблемы с оптимизацией USB (лагает клавиатура/мышь)
{ config, lib, vars, ... }:
let
cfg = config.custom;
@@ -12,7 +14,8 @@ in {
};
};
config = lib.mkIf cfg.battery.enable {
# config = lib.mkIf cfg.battery.enable {
config = {
boot.kernelParams = [ "amd_pstate=active" ];
powerManagement.powertop.enable =
@@ -20,8 +23,8 @@ in {
services.system76-scheduler.settings.cfsProfiles.enable =
true; # Better scheduling for CPU cycles - thanks System76!!!
services.thermald.enable =
true; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs)
# services.thermald.enable =
# true; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs)
services.power-profiles-daemon.enable =
false; # Disable GNOMEs power management
services.tlp = {
@@ -38,7 +41,7 @@ in {
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
AMDGPU_ABM_LEVEL_ON_AC = 0;
AMDGPU_ABM_LEVEL_ON_BAT = 3;
AMDGPU_ABM_LEVEL_ON_BAT = 0;
PLATFORM_PROFILE_ON_AC = "performance";
PLATFORM_PROFILE_ON_BAT = "low-power";
PCIE_ASPM_ON_BAT = "powersupersave";
@@ -50,13 +53,13 @@ in {
SOUND_POWER_SAVE_ON_BAT = 1;
SOUND_POWER_SAVE_CONTROLLER = "Y";
CPU_MAX_PERF_ON_AC = 100;
CPU_MAX_PERF_ON_BAT = 10;
CPU_MAX_PERF_ON_BAT = 50;
NMI_WATCHDOG = 0;
USB_AUTOSUSPEND = 1;
USB_AUTOSUSPEND = 0;
USB_BLACKLIST_BTUSB = 0;
START_CHARGE_THRESH_BAT0 = 70;
STOP_CHARGE_THRESH_BAT0 = 86;
START_CHARGE_THRESH_BAT0 = 0;
STOP_CHARGE_THRESH_BAT0 = 1;
};
};
};
+22 -5
View File
@@ -15,7 +15,16 @@
programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ kitty amnezia-vpn lenovo-legion ];
environment.systemPackages = with pkgs; [
kitty
amnezia-vpn
powertop
system76-scheduler
tlp
# lenovo-legion
];
# starting the following units: accounts-daemon.service, systemd-modules-load.service, systemd-tmpfiles-resetup.service, tlp.ser
# TODO: Добавить настройку вентиляторов
@@ -27,6 +36,17 @@
}];
}]; # TODO: fix amnezia-service loading on startup
# systemd.services.amnezia-vpn-service = {
# description = "Amnezia VPN Service";
# after = [ "network-online.target" ];
# wantedBy = [ "multi-user.target" ];
# serviceConfig = {
# ExecStart = "${pkgs.amnezia-vpn}/bin/AmneziaVPN-service";
# Restart = "on-failure";
# User = "root";
# };
# };
programs.neovim = {
enable = true;
defaultEditor = true;
@@ -80,11 +100,8 @@
consoleLogLevel = 3;
initrd.verbose = false;
kernelModules =
[ "tun" "lenovo-legion-module" ]; # check if tun really needed
kernelModules = [ "tun" ]; # check if tun really needed
kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = with config.boot.kernelPackages;
[ lenovo-legion-module ];
kernelParams = [
"quiet"
"splash"