secrets: add option 'generateSecrets'
Move this feature from a module preset to a regular option, so that it's easily discoverable and accessible. Simplify the implementation of `generateSecrets` by adding it to the existing `setup-secrets` service script. Also rename option setup-secrets -> setupSecrets.
This commit is contained in:
committed by
Jonas Nick
parent
03515a8da6
commit
b701cb5603
@@ -83,8 +83,8 @@ read -d '' src <<EOF || true
|
||||
config = { pkgs, config, lib, ... }: {
|
||||
imports = [
|
||||
<${configuration}>
|
||||
<nix-bitcoin/modules/secrets/generate-secrets.nix>
|
||||
];
|
||||
nix-bitcoin.generateSecrets = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user