diff options
| author | Adam Curtis <adam.curtis.dev@gmail.com> | 2024-01-19 12:16:32 -0500 |
|---|---|---|
| committer | Adam Curtis <adam.curtis.dev@gmail.com> | 2024-01-19 12:16:32 -0500 |
| commit | 5cec74dae1bf439a3d137152e77badc7214ddc7c (patch) | |
| tree | d9e98e6be21df865eba35708768c6377a26d45f0 /modules | |
| parent | 74ab0227ee495e526f2dd57ea684b34f6396445a (diff) | |
fix shell escaping in networking config
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/networking/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/networking/default.nix b/modules/networking/default.nix index af82c39..c70b07d 100644 --- a/modules/networking/default.nix +++ b/modules/networking/default.nix @@ -107,13 +107,13 @@ in echo "configuring networking..." >&2 ${optionalString (cfg.computerName != null) '' - scutil --set ComputerName '${cfg.computerName}' + scutil --set ComputerName ${escapeShellArg cfg.computerName} ''} ${optionalString (cfg.hostName != null) '' - scutil --set HostName '${cfg.hostName}' + scutil --set HostName ${escapeShellArg cfg.hostName} ''} ${optionalString (cfg.localHostName != null) '' - scutil --set LocalHostName '${cfg.localHostName}' + scutil --set LocalHostName ${escapeShellArg cfg.localHostName} ''} ${setNetworkServices} |
