- Add XF86KbdBrightnessUp/Down keybindings (Macbook-only) using swayosd for consistent OSD behaviour with screen brightness and volume - Enable hardware.acpilight for udev rules allowing video group to write to /sys/class/leds/ (keyboard backlight) - Add fred to the video group so brightnessctl/swayosd can write backlight values Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ config, pkgs, lib, inputs, ... }:
|
|
|
|
{
|
|
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
|
|
environment.systemPackages = with pkgs; [
|
|
tlp
|
|
vesktop
|
|
adwaita-icon-theme
|
|
mission-center
|
|
vlc
|
|
geary
|
|
protonvpn-gui
|
|
onlyoffice-desktopeditors
|
|
woeusb
|
|
vscodium
|
|
];
|
|
|
|
nix.settings.max-jobs = 0;
|
|
|
|
services.tlp.enable = false;
|
|
programs.nix-ld.enable = true;
|
|
services.power-profiles-daemon.enable = true;
|
|
|
|
boot.loader.systemd-boot.configurationLimit = 5;
|
|
boot.initrd.systemd.enable = true;
|
|
|
|
# Allow video group (fred) to write to /sys/class/backlight and /sys/class/leds
|
|
# (screen brightness and keyboard backlight)
|
|
hardware.acpilight.enable = true;
|
|
|
|
services.logind.settings.Login = {
|
|
HandleLidSwitch = "suspend";
|
|
HandleLidSwitchExternalPower = "suspend";
|
|
};
|
|
|
|
home-manager.users.fred = { ... }: {
|
|
wayland.windowManager.hyprland.settings.monitor =
|
|
[ ",preferred,auto,auto" ];
|
|
};
|
|
};
|
|
}
|