about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2022-09-19 22:20:48 +0200
committerPeder Bergebakken Sundt <pbsds@hotmail.com>2022-09-19 22:21:26 +0200
commitd9de5da65bc29859f71c657bbee85021c008e5dc (patch)
tree713fbf971ee4ba0270f03aa510156da8d8b79aaf /nixos
parentd9a1414346059619d9e13ab93e749bbb82e5252a (diff)
downloadnixlib-d9de5da65bc29859f71c657bbee85021c008e5dc.tar
nixlib-d9de5da65bc29859f71c657bbee85021c008e5dc.tar.gz
nixlib-d9de5da65bc29859f71c657bbee85021c008e5dc.tar.bz2
nixlib-d9de5da65bc29859f71c657bbee85021c008e5dc.tar.lz
nixlib-d9de5da65bc29859f71c657bbee85021c008e5dc.tar.xz
nixlib-d9de5da65bc29859f71c657bbee85021c008e5dc.tar.zst
nixlib-d9de5da65bc29859f71c657bbee85021c008e5dc.zip
nixos/code-server: escape shell extraArguments
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/code-server.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/code-server.nix b/nixos/modules/services/web-apps/code-server.nix
index 1191fb53350b..0d6b6c529b6d 100644
--- a/nixos/modules/services/web-apps/code-server.nix
+++ b/nixos/modules/services/web-apps/code-server.nix
@@ -63,7 +63,7 @@ in {
       hashedPassword = mkOption {
         default = "";
         description =
-          lib.mdDoc "Create the password with: 'echo -n 'thisismypassword' | npx argon2-cli -e'.";
+          lib.mdDoc "Create the password with: `echo -n 'thisismypassword' | npx argon2-cli -e`.";
         type = types.str;
       };
 
@@ -109,7 +109,7 @@ in {
         HASHED_PASSWORD = cfg.hashedPassword;
       } // cfg.extraEnvironment;
       serviceConfig = {
-        ExecStart = "${cfg.package}/bin/code-server --bind-addr ${cfg.host}:${toString cfg.port} --auth ${cfg.auth} " + builtins.concatStringsSep " " cfg.extraArguments;
+        ExecStart = "${cfg.package}/bin/code-server --bind-addr ${cfg.host}:${toString cfg.port} --auth ${cfg.auth} " + lib.escapeShellArgs cfg.extraArguments;
         ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
         RuntimeDirectory = cfg.user;
         User = cfg.user;