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