71 lines
2.7 KiB
Bash
71 lines
2.7 KiB
Bash
#!/bin/bash
|
|
# ============================================================================
|
|
# DarkForge Linux — System Configuration
|
|
# ============================================================================
|
|
# /etc/rc.conf — sourced by all rc.d scripts and the init system.
|
|
# This is the single place to configure hostname, locale, timezone,
|
|
# network, daemons, and kernel modules.
|
|
# ============================================================================
|
|
|
|
# --- System identity --------------------------------------------------------
|
|
HOSTNAME="darkforge"
|
|
|
|
# --- Locale and language ----------------------------------------------------
|
|
LOCALE="en_US.UTF-8"
|
|
KEYMAP="us"
|
|
TIMEZONE="America/New_York"
|
|
# These are set during installation and can be changed here post-install.
|
|
|
|
# --- Console font -----------------------------------------------------------
|
|
FONT=""
|
|
# Set to "" for kernel default. Can use "ter-v18n" (Terminus 18px) if
|
|
# terminus-font package is installed. Requires kbd package for setfont.
|
|
|
|
# --- Daemons to start at boot ----------------------------------------------
|
|
# Order matters. Each name corresponds to a script in /etc/rc.d/
|
|
# Scripts are started in listed order at boot, stopped in reverse at shutdown.
|
|
DAEMONS=(
|
|
eudev # Device manager — must be first for hardware detection
|
|
seatd # Seat manager — gives user access to GPU, input, sound devices
|
|
syslog # System logging
|
|
dbus # D-Bus message bus — needed by polkit, PipeWire
|
|
dhcpcd # DHCP client for ethernet
|
|
pipewire # Audio server — prepares XDG_RUNTIME_DIR (user session starts audio)
|
|
)
|
|
|
|
# --- Kernel modules to load at boot ----------------------------------------
|
|
# Modules not auto-loaded by eudev that we need explicitly.
|
|
MODULES=(
|
|
nvidia
|
|
nvidia-modeset
|
|
nvidia-drm
|
|
nvidia-uvm
|
|
)
|
|
|
|
# --- Module parameters ------------------------------------------------------
|
|
# Pass parameters to kernel modules when loading.
|
|
# Format: "module_name parameter=value"
|
|
MODULE_PARAMS=(
|
|
"nvidia-drm modeset=1"
|
|
# nvidia-drm modeset=1 — required for Wayland DRM/KMS support
|
|
)
|
|
|
|
# --- Network ----------------------------------------------------------------
|
|
NETWORK_INTERFACE="enp6s0"
|
|
# The primary ethernet interface. Detected by eudev.
|
|
# Verify with: ip link show
|
|
# X870E Hero Realtek 2.5GbE is typically enp6s0 or similar.
|
|
|
|
NETWORK_DHCP=yes
|
|
# Use DHCP for automatic IP configuration.
|
|
# Set to "no" for static IP and configure NETWORK_IP/MASK/GATEWAY below.
|
|
|
|
#NETWORK_IP="192.168.1.100"
|
|
#NETWORK_MASK="255.255.255.0"
|
|
#NETWORK_GATEWAY="192.168.1.1"
|
|
#NETWORK_DNS="1.1.1.1 8.8.8.8"
|
|
|
|
# --- Miscellaneous ----------------------------------------------------------
|
|
HARDWARECLOCK="UTC"
|
|
# The hardware clock is set to UTC. localtime is computed from TIMEZONE.
|