diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-04-13 00:05:27 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-05-01 14:58:57 +0300 |
| commit | 9d9429ad10ce989557a96d07d72617b0e0f83d10 (patch) | |
| tree | 87c7edee8ae687d7b77359ff38634cb5b0987a28 /nixos/laptop/configuration.nix | |
| parent | 19f9c72bd9a453794ac9968b4a506d6915c34b02 (diff) | |
feat: add power management config
Diffstat (limited to 'nixos/laptop/configuration.nix')
| -rw-r--r-- | nixos/laptop/configuration.nix | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/nixos/laptop/configuration.nix b/nixos/laptop/configuration.nix index d20f811..305c997 100644 --- a/nixos/laptop/configuration.nix +++ b/nixos/laptop/configuration.nix @@ -1,4 +1,4 @@ -{ inputs, outputs, pkgs, ... }: { +{ pkgs, ... }: { # You can import other NixOS modules here imports = [ # If you want to use modules your own flake exports (from modules/nixos): @@ -20,22 +20,37 @@ docker.enable = true; greetd.command = "Hyprland"; + powerManagement.enable = true; + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + + CPU_MIN_PERF_ON_AC = 0; + CPU_MAX_PERF_ON_AC = 100; + CPU_MIN_PERF_ON_BAT = 0; + CPU_MAX_PERF_ON_BAT = 20; + + USB_AUTOSUSPEND = 0; + }; + }; + time.timeZone = "Europe/Moscow"; networking.hostName = "ltrr-mini"; - - virtualisation.libvirtd.enable = true; - programs.virt-manager.enable = true; + networking.hosts = { + "127.0.0.1" = [ "mr.local" "local.oneln.ru" ]; + "127.0.0.3" = [ "local-api.oneln.ru" ]; + }; programs.adb.enable = true; services.udev.packages = [ pkgs.android-udev-rules ]; - services.joycond.enable = true; - environment.systemPackages = with pkgs; [ - joycond-cemuhook - ]; - # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "23.05"; } |
