[V1] Fix NixOS Build

This commit is contained in:
Youwes09
2026-02-26 21:05:24 -06:00
parent 3d074a1fb1
commit 272d7673ce
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ fn patch_conf_key(mut text: String, key: &str, value: &str) -> String {
let replacement = format!("{key} = {value}");
// Find a line that starts with the key (tolerant of surrounding whitespace)
if let Some(pos) = text.lines().position(|l| l.trim_start().starts_with(key)) {
let mut lines: Vec<&str> = text.lines().collect();
let lines: Vec<&str> = text.lines().collect();
// We need an owned replacement; rebuild from scratch.
let owned: Vec<String> = lines
.iter()