forked from DGNum/infrastructure
web-01: minimal config
This commit is contained in:
parent
871f8e1e6a
commit
fbde3006e5
5 changed files with 77 additions and 2 deletions
|
@ -1,4 +1,12 @@
|
|||
{...}: {
|
||||
{...}:
|
||||
let
|
||||
luksName = "mainfs";
|
||||
in
|
||||
{
|
||||
boot.initrd.luks.devices.${luksName} = {
|
||||
keyFile = "/dev/zero";
|
||||
keyFileSize = 1;
|
||||
};
|
||||
disko.devices = {
|
||||
disk = {
|
||||
vdb = {
|
||||
|
@ -26,7 +34,7 @@
|
|||
end = "-4GiB";
|
||||
content = rec {
|
||||
type = "luks";
|
||||
name = "mainfs";
|
||||
name = luksName;
|
||||
extraOpenArgs = [ "--keyfile-size=1" ];
|
||||
extraFormatArgs = extraOpenArgs;
|
||||
keyFile = "/dev/zero";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue