valere: config volume, default to lowpower
This commit is contained in:
parent
cf374d5c99
commit
23d4350b1c
2 changed files with 10 additions and 11 deletions
|
@ -228,6 +228,7 @@ in
|
||||||
"XF86Launch6".action = sh "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 0.1-";
|
"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+";
|
"XF86Tools".action = sh "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 0.1+";
|
||||||
"XF86AudioMute".action = sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
"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%-";
|
"XF86MonBrightnessDown".action = sh "brightnessctl set 10%-";
|
||||||
"XF86MonBrightnessUp".action = sh "brightnessctl set 10%+";
|
"XF86MonBrightnessUp".action = sh "brightnessctl set 10%+";
|
||||||
|
|
|
@ -53,7 +53,8 @@
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
# Set up the NVIDIA half of the GPU setup.
|
# 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 = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
@ -74,18 +75,15 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Provide a way to disable the NVIDIA GPU entirely,
|
# Disable the NVIDIA GPU unless we explicitly request it.
|
||||||
# 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.
|
|
||||||
hardware.nvidiaOptimus.disable = true;
|
hardware.nvidiaOptimus.disable = true;
|
||||||
|
|
||||||
# These don't actually do anything, but they make introspecting
|
# Provide a configuration that uses the full GPU power of the system.
|
||||||
# the configuration a bit nicer.
|
specialisation.optimus.configuration = {
|
||||||
hardware.nvidia.modesetting.enable = lib.mkForce false;
|
system.nixos.tags = lib.mkForce ["NVIDIA"];
|
||||||
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.
|
# Provide memtest86, since that's nice.
|
||||||
|
|
Loading…
Add table
Reference in a new issue