From c1d46d2b9591584d8d4876cd2d778bfd8e916aaf Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Wed, 2 Sep 2026 23:51:00 -0500 Subject: [PATCH] feat(laptop): add nix-ld, power management, screen recording, and niri configs - Enable `nix-ld` with dynamic libraries in `hosts/laptop/configuration.nix`. - Enable `power-profiles-daemon` and `upower` services, and add `brightnessctl`. - Add `obs-studio` and `wf-recorder` to laptop home packages in `hosts/laptop/home.nix`. - Link shared Niri configuration files (`config.kdl` and `custom.kdl`) for the laptop user environment. --- hosts/laptop/configuration.nix | 19 +++++++++++++++++++ hosts/laptop/home.nix | 10 +++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 73e46ad..923ef7f 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -54,6 +54,25 @@ # Host-specific graphical compositor (Niri window manager for laptop) programs.niri.enable = true; + # Dynamic binary execution support (for unpatched binaries, VS Code server, language servers) + programs.nix-ld = { + enable = true; + libraries = with pkgs; [ + stdenv.cc.cc.lib + zlib + glib + ]; + }; + + # 🔋 Laptop Power & Battery Management + services.power-profiles-daemon.enable = true; + services.upower.enable = true; + + # Backlight brightness control utility + environment.systemPackages = with pkgs; [ + brightnessctl + ]; + # Rebuild/State version. Do not modify. system.stateVersion = "26.05"; } diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 57f6ae5..375900c 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -4,5 +4,13 @@ { config, pkgs, ... }: { - # Niri WM configurations (under construction) + # Host-specific package installations for laptop workstation + home.packages = with pkgs; [ + obs-studio # High-feature video capture and streaming studio + wf-recorder # Light recorder for Wayland-based window managers + ]; + + # Niri WM declarative configuration files + home.file.".config/niri/config.kdl".source = ../../modules/user/config/niri/config.kdl; + home.file.".config/niri/custom.kdl".source = ../../modules/user/config/niri/custom.kdl; }