mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-23 05:09:32 -08:00
added support for changing backlights on my laptop
This commit is contained in:
parent
1e960571ee
commit
eee528e49e
2 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -13,6 +13,10 @@
|
||||||
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.brightnessctl # brighness manager for hotkeys
|
||||||
|
];
|
||||||
|
|
||||||
# tailscale set --exit-node <SEVERNAME> to route through an exit node
|
# tailscale set --exit-node <SEVERNAME> to route through an exit node
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
|
@ -56,6 +56,12 @@ in
|
||||||
"eww open full_screen_bar"
|
"eww open full_screen_bar"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
binde = if (hostname == "NicksNixLaptop") then
|
||||||
|
[
|
||||||
|
",XF86MonBrightnessUp, exec, brightnessctl set 10%+"
|
||||||
|
",XF86MonBrightnessDown, exec, brightnessctl set 10%-"
|
||||||
|
] else [];
|
||||||
|
|
||||||
input = if (hostname == "NicksNixLaptop") then
|
input = if (hostname == "NicksNixLaptop") then
|
||||||
{
|
{
|
||||||
kb_layout = "us";
|
kb_layout = "us";
|
||||||
|
|
Loading…
Reference in a new issue