feat(lib/keys): Add a function for nodeless secrets
This commit is contained in:
parent
8e39d6bc1a
commit
6dc90315c5
2 changed files with 9 additions and 8 deletions
|
@ -40,6 +40,8 @@ rec {
|
|||
|
||||
mkSecrets = nodes: setDefault { publicKeys = unique (builtins.concatMap getSecretKeys nodes); };
|
||||
|
||||
mkRootSecrets = setDefault { publicKeys = unique rootKeys; };
|
||||
|
||||
machineKeysBySystem =
|
||||
system:
|
||||
rootKeys
|
||||
|
|
|
@ -2,11 +2,10 @@
|
|||
#
|
||||
# SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
(import ../../../../keys.nix).mkSecrets
|
||||
[ ]
|
||||
[
|
||||
(import ../../../../keys.nix).mkRootSecrets [
|
||||
"compute01.key"
|
||||
"storage01.key"
|
||||
"web01.key"
|
||||
"web02.key"
|
||||
"web03.key"
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue