mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(ci): formatting
This commit is contained in:
parent
ef5306904c
commit
6e882b5342
11 changed files with 30 additions and 44 deletions
|
|
@ -10,9 +10,16 @@
|
|||
subdir ? null,
|
||||
exe ? null,
|
||||
}: let
|
||||
subcommand = if exe == null then "run" else "shell";
|
||||
exeArg = if exe == null then "--" else "-c ${exe}";
|
||||
in pkgs.writeShellScriptBin name ''
|
||||
subcommand =
|
||||
if exe == null
|
||||
then "run"
|
||||
else "shell";
|
||||
exeArg =
|
||||
if exe == null
|
||||
then "--"
|
||||
else "-c ${exe}";
|
||||
in
|
||||
pkgs.writeShellScriptBin name ''
|
||||
${optionalString (subdir != null) ''cd "$NF_CONFIG_ROOT${subdir}"''}
|
||||
exec nix ${subcommand} ''${FLAKE_OPTS-} "$NF_CONFIG_ROOT#${attr}" ${exeArg} "$@"
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue