Apply shell-check fixes

This commit is contained in:
Manuel Thalmann 2024-05-19 01:15:20 +02:00
parent ac265706dd
commit cbcae30c12

View file

@ -58,7 +58,7 @@ let
path = lib.mkOption {
type = lib.types.str;
description = "The path to mount the remote file system to.";
default = "$HOME/.mnt/${lib.escapeShellArg name}";
default = ''"$HOME"/.mnt/${lib.escapeShellArg name}'';
};
autoStart = lib.mkOption {
@ -148,10 +148,14 @@ let
config = {
secretsScript = lib.strings.concatLines
(builtins.attrValues (
builtins.mapAttrs
(name: path: "export ${name}=\"$(cat ${lib.escapeShellArg path})\"")
config.secrets));
(builtins.concatLists
(builtins.attrValues (
builtins.mapAttrs
(name: path: [
"${name}=\"$(cat ${lib.escapeShellArg path})\""
"export ${name}"
])
config.secrets)));
args = config.extraArgs ++ (
let