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.
This commit is contained in:
1 parent
458c58301b
commit
c1d46d2b95
2 files changed
+28
-1
No files matched your search
@@ -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";
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user