From 93758647f6eb9728dcf4dde446e5d8dd3b67d294 Mon Sep 17 00:00:00 2001 From: vorboyvo Date: Tue, 12 Mar 2024 12:58:35 -0400 Subject: [PATCH] Added brightnessctl and removed redundant udev rules that brightnessctl puts in place --- configuration.nix | 9 ++++----- home.nix | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index e23885c..a983d14 100644 --- a/configuration.nix +++ b/configuration.nix @@ -74,11 +74,10 @@ hardware.opengl.enable = true; # Allow users in group "video" to modify backlight - services.udev.extraRules = '' - ACTION=="add", SUBSYSTEM=="backlight" KERNEL=="amdgpu_bl0", RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/amdgpu_bl0/brightness" - - ACTION=="add", SUBSYSTEM=="backlight" KERNEL=="amdgpu_bl0", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/amdgpu_bl0/brightness" - ''; + # services.udev.extraRules = '' + # ACTION=="add", SUBSYSTEM=="backlight" KERNEL=="amdgpu_bl0", RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/amdgpu_bl0/brightness" + # ACTION=="add", SUBSYSTEM=="backlight" KERNEL=="amdgpu_bl0", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/amdgpu_bl0/brightness" + # ''; # Enable CUPS to print documents. services.printing.enable = true; diff --git a/home.nix b/home.nix index 0bf9b0c..c9ec8ae 100644 --- a/home.nix +++ b/home.nix @@ -36,7 +36,7 @@ in [ python3 ] ++ # I guess..... [ julia ] ++ # Julia [ nil ] ++ # Nix tools - [ grim slurp wl-clipboard jq (callPackage ./pkgs/xdg-terminal-exec/xdg-terminal-exec.nix {}) blueman ] ++ # Basic utilities + [ brightnessctl grim slurp wl-clipboard jq (callPackage ./pkgs/xdg-terminal-exec/xdg-terminal-exec.nix {}) blueman ] ++ # Basic utilities [ bitwarden-cli htop snore ] ++ # Personalized selection of command-line (CLI/TUI) apps [ terminal ] ++ # Terminal emulator [ firefox cinnamon.nemo gnome.file-roller cinnamon.nemo-fileroller evince imv vlc pavucontrol ] ++ # Basic graphical apps