web-01: minimal config

This commit is contained in:
mdebray 2023-05-12 01:22:09 +00:00
parent 871f8e1e6a
commit fbde3006e5
5 changed files with 77 additions and 2 deletions

View file

@ -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";