This configuration is designed for NixOS with DWM (Dynamic Window Manager). It includes several custom Nix scripts that may assist in building a personalized NixOS + DWM setup.
This configuration is tailored to a specific system. Copying it without understanding its structure and function is not recommended. If you choose to use it, be prepared to modify it accordingly.
Dotfiles should be stored in:
$HOME/HOME/dotfiles
Additionally, update the username in the configuration to match your own. If you do not, you will need to rename your user account to dash.
Since hardware configurations vary, replace the existing file with one specific to your system. To generate a new configuration file, run:
sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix
This configuration is set up for offload mode, which:
- Uses Intel GPU by default.
- Switches to NVIDIA for resource-intensive tasks.
- Your GPU may not support offload mode.
- Driver behavior varies across different hardware.
- Some GPUs require additional configuration steps.
If you have a single GPU setup (Intel or NVIDIA only), adjustments will be necessary.
Execute the following script:
./home/sh/sh-nixos/sapply
This will apply the configuration and rebuild the system.
If you do not understand its structure, you will likely encounter errors that are difficult to troubleshoot without knowledge of Nix and Flakes.
Instead of copying the configuration outright, review its components, modify them as needed, and integrate them into your setup incrementally.