summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMichael Hoang <Enzime@users.noreply.github.com>2024-01-21 10:14:09 +1000
committerGitHub <noreply@github.com>2024-01-21 10:14:09 +1000
commit3ac7acd32db4f7111015e8d5349ff6067df01bf6 (patch)
tree73911c8108133f5384043cd610223c7bb0bc7e4e /modules
parent983bd5125d452418e72c2a790f3f58208918cc88 (diff)
parent5cec74dae1bf439a3d137152e77badc7214ddc7c (diff)
Merge pull request #854 from kallisti-dev/fix/network-names-shell-escapes
fix shell escaping in networking config
Diffstat (limited to 'modules')
-rw-r--r--modules/networking/default.nix6
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}