Skip to content

Commit

Permalink
fix: boot usb setting
Browse files Browse the repository at this point in the history
  • Loading branch information
misumisumi committed May 12, 2024
1 parent 2b6e9c7 commit c27e9c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
21 changes: 9 additions & 12 deletions machines/recovery/filesystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,27 @@ in
];
};
};
lvm-recovery = {
recovery = {
size = "100%";
type = "8E00";
content = {
type = "lvm_pv";
vg = "lvm-recovery";
vg = "BootUSB";
};
};
luks-recovery = {
luks = {
size = "32G";
content = {
type = "luks";
name = "crypted-recovery";
extraOpenArgs = [ ];
name = "luks-bootusb";
initrdUnlock = false; # Do not unlock on boot
passwordFile = "/tmp/secrets/luks.key";
settings = {
# if you want to use the key for interactive login be sure there is no trailing newline
# for example use `echo -n "password" > /tmp/secret.key`
keyFile = "/tmp/secrets/luks.key";
allowDiscards = true;
};
# additionalKeyFiles = [ "/tmp/secrets/additionalSecret.key" ];
content = {
type = "lvm_pv";
vg = "secrets-recovery";
vg = "SecretUSB";
};
};
};
Expand All @@ -55,7 +52,7 @@ in
};
};
lvm_vg = {
lvm-recovery = {
BootUSB = {
type = "lvm_vg";
lvs = {
root = {
Expand Down Expand Up @@ -87,7 +84,7 @@ in
};
};
};
secrets-recovery = {
SecretUSB = {
type = "lvm_vg";
lvs = {
secrets = {
Expand Down
1 change: 0 additions & 1 deletion machines/recovery/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
, ...
}: {
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
Expand Down

0 comments on commit c27e9c1

Please sign in to comment.