AI SummaryA Windsurf-specific prompt that provides rules and best practices for safely managing and testing NixOS configurations, including validation commands and git commit workflows. Ideal for developers maintaining complex NixOS setups who need AI assistance while avoiding common pitfalls.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "nixos-configuration — Windsurf Rules" prompt rules to my project. Repository: https://github.com/zsedem/nixos-configuration Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
NixOs Configuration
After a change
You can use the ` nixos-rebuild -I zsedem-config=(realpath .) dry-activate ` oneliner to test our changes. ALWAYS check the output of the command. and see if our changes need to be fixed. The expected output for a successful run is > Failed to start transient service unit: Interactive authentication required. > Error: switch-to-configuration must be run as the root user > warning: error(s) occurred while switching to the new configuration Because we don't run the command with root priviliges we get this output and it is fine. NEVER offer to run the command with root priviliges. (meaning: do not offer to run commands with sudo) Check ./Readme.md, if it needs to be updated. Only update the readme if we make changes to something general, like something with nixos options. Offer to make a git commit after we did a meaningful change. Include the whole message, like this: ` git commit -am "<message>" ` where your <message> should be a meaningful description of the change.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts