shell.nix: cleanup

This commit is contained in:
Ingolf Wagner 2020-03-06 15:27:48 +08:00
parent 79524242dc
commit 3e72fb782d
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -134,11 +134,12 @@ let
"${commandPrefix}-${name}-with-secrets" "${commandPrefix}-${name}-with-secrets"
else else
"${commandPrefix}-${name}-without-secrets"; "${commandPrefix}-${name}-without-secrets";
populateCommands = with lib; flatten [ populateCommands = with lib;
content flatten [
(optionals enableSecrets secrets) content
(optionals enableSwitch [ switch ]) (optionals enableSecrets secrets)
]; (optionals enableSwitch [ switch ])
];
in jobs commandName "${user}@${host}${target}" populateCommands; in jobs commandName "${user}@${host}${target}" populateCommands;
serverDeployment = name: serverDeployment = name: