Get basic PoC up and running on mx.kaareskovgaard.net
Now zpool-helper can create the zpool and datasets. But there's no reconsiliation of existing zpools and datasets. However everything gets encrypted as it should, and unlocked on boot.
This commit is contained in:
parent
71b4792fdd
commit
aaf4d1e5a3
2 changed files with 4 additions and 3 deletions
|
@ -12,11 +12,10 @@ let
|
||||||
{ name, value }:
|
{ name, value }:
|
||||||
let
|
let
|
||||||
enc = lib.strings.optionalString (!isTest) ''
|
enc = lib.strings.optionalString (!isTest) ''
|
||||||
|
\
|
||||||
--encryption-key-mount=${lib.escapeShellArg value.encryptionKeyOpenbao.mount} \
|
--encryption-key-mount=${lib.escapeShellArg value.encryptionKeyOpenbao.mount} \
|
||||||
--encryption-key-name=${lib.escapeShellArg value.encryptionKeyOpenbao.name} \
|
--encryption-key-name=${lib.escapeShellArg value.encryptionKeyOpenbao.name} \
|
||||||
--encryption-key-field=${lib.escapeShellArg value.encryptionKeyOpenbao.field} \
|
--encryption-key-field=${lib.escapeShellArg value.encryptionKeyOpenbao.field}'';
|
||||||
'';
|
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
${zpoolSetup} setup ${enc} \
|
${zpoolSetup} setup ${enc} \
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
crateName = "zpool-setup";
|
crateName = "zpool-setup";
|
||||||
replacePath = true;
|
replacePath = true;
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
pkgs.openbao
|
||||||
|
pkgs.uutils-coreutils-noprefix
|
||||||
pkgs.zfs
|
pkgs.zfs
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue