Skip to content

Changed substituteAll to replaceVars#11

Merged
spietras merged 1 commit into
mainfrom
replace
Dec 16, 2025
Merged

Changed substituteAll to replaceVars#11
spietras merged 1 commit into
mainfrom
replace

Conversation

@spietras

Copy link
Copy Markdown
Member

No description provided.

@spietras spietras requested a review from Copilot December 16, 2025 22:17
@spietras spietras self-assigned this Dec 16, 2025
@spietras spietras added the cleanup Stay fresh label Dec 16, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the install script generation by replacing the deprecated pkgs.substituteAll function with the newer pkgs.replaceVars function. The change simplifies the code by using a more concise API for variable substitution in the install shell script.

Key Changes

  • Replaced pkgs.substituteAll with pkgs.replaceVars for template variable substitution
  • Simplified the syntax by passing the source file directly as the first argument
  • Removed redundant comments about source file and substitution values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/src/hosts/dummy/modules/install/default.nix
@spietras spietras merged commit 95ed69f into main Dec 16, 2025
8 checks passed
@spietras spietras deleted the replace branch December 16, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Stay fresh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants