Apply shell-check fixes
This commit is contained in:
parent
ac265706dd
commit
cbcae30c12
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue