Skip to content

Commit

Permalink
fix: added double quotes to substituteSecret in home-manager module t…
Browse files Browse the repository at this point in the history
…o prevent SC2086 being raised
  • Loading branch information
elliott-farrall committed Nov 19, 2024
1 parent f2725cd commit 3478f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/age-home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ with lib; let

substituteSecret = secretType:
builtins.concatStringsSep "\n" (builtins.map (file: ''
${pkgs.gnused}/bin/sed -i "s#@${secretType.name}@#$(cat ${secretType.path})#" ${file}
${pkgs.gnused}/bin/sed -i "s#@${secretType.name}@#$(cat "${secretType.path}")#" ${file}
'')
secretType.substitutions);

Expand Down

0 comments on commit 3478f03

Please sign in to comment.