Files
Nomarchy/bin/nomarchy-install-xbox-controllers
Bernardo Magri 29cc0d2547 feat: implement modular foundation and core system services
- Update flake.nix with 25.11 release and core inputs
- Add dedicated modules for audio (Pipewire), bluetooth, and networking
- Update GEMINI.md with the new Modular Merging Architecture blueprint
- Configure graphical installer ISO and test VM outputs
2026-04-03 21:06:42 +01:00

24 lines
774 B
Bash
Executable File

#!/usr/bin/env bash
# Configure Xbox Controller support (xpadneo) declaratively for Nomarchy NixOS.
FEATURE_FILE="/etc/nixos/nomarchy-features/xbox-controller.nix"
if [ -f "$FEATURE_FILE" ]; then
echo "Xbox controller support is already configured in $FEATURE_FILE"
exit 0
fi
sudo mkdir -p "/etc/nixos/nomarchy-features"
cat <<EOF | sudo tee "$FEATURE_FILE" > /dev/null
{ config, pkgs, ... }:
{
hardware.xpadneo.enable = true;
# Note: This automatically handles blacklisting xpad if needed and provides modules.
}
EOF
echo "Created $FEATURE_FILE."
echo "IMPORTANT: To finish enabling Xbox controller support, add './nomarchy-features/xbox-controller.nix' to your imports list in /etc/nixos/system.nix or /etc/nixos/flake.nix,"
echo "then run 'sys-update'."