valere: config volume, default to lowpower

This commit is contained in:
Kate 2024-11-24 14:00:06 -07:00
parent cf374d5c99
commit 23d4350b1c
2 changed files with 10 additions and 11 deletions

View file

@ -228,6 +228,7 @@ in
"XF86Launch6".action = sh "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 0.1-";
"XF86Tools".action = sh "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 0.1+";
"XF86AudioMute".action = sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
"XF86AudioMicMute".action = sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
"XF86MonBrightnessDown".action = sh "brightnessctl set 10%-";
"XF86MonBrightnessUp".action = sh "brightnessctl set 10%+";

View file

@ -53,7 +53,8 @@
services.xserver.videoDrivers = ["nvidia"];
# Set up the NVIDIA half of the GPU setup.
system.nixos.tags = ["NVIDIA" "Intel"];
# These are used only in the "enabled" configuration.
system.nixos.tags = ["Intel"];
hardware.nvidia = {
modesetting.enable = true;
@ -74,18 +75,15 @@
};
# Provide a way to disable the NVIDIA GPU entirely,
# for points when traveling where we don't want to burn power.
specialisation.lowpower.configuration = {
system.nixos.tags = lib.mkForce ["Intel"];
# Disable the NVIDIA GPU unless we explicitly request it.
hardware.nvidiaOptimus.disable = true;
# Disable the NVIDIA GPU.
hardware.nvidiaOptimus.disable = true;
# Provide a configuration that uses the full GPU power of the system.
specialisation.optimus.configuration = {
system.nixos.tags = lib.mkForce ["NVIDIA"];
# These don't actually do anything, but they make introspecting
# the configuration a bit nicer.
hardware.nvidia.modesetting.enable = lib.mkForce false;
hardware.nvidia.prime.sync.enable = lib.mkForce false;
# Don't disable optimus on this config.
hardware.nvidiaOptimus.disable = lib.mkForce false;
};
# Provide memtest86, since that's nice.