Create options for managing disk UUIDs
This commit is contained in:
parent
54c43ef2cf
commit
a8f17c5c52
2 changed files with 33 additions and 4 deletions
29
flake.nix
29
flake.nix
|
|
@ -40,6 +40,35 @@
|
|||
modules = [
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
./machines/persephone.nix
|
||||
(
|
||||
{ lib, ... }:
|
||||
{
|
||||
options.machines = {
|
||||
fs = {
|
||||
bootUUID = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The UUID of the XBOOTLDR partition.";
|
||||
default = "9c2d7380-571d-4bc5-9ad2-e4888ce351be";
|
||||
};
|
||||
efiUUID = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The UUID of the ESP.";
|
||||
default = "71E7-7A63";
|
||||
};
|
||||
luuksUUID = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The UUID of the encrypted root partition.";
|
||||
default = "b0ace3a0-64f0-461e-a604-7f6788384d12";
|
||||
};
|
||||
cryptrootUUID = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The UUID of the decrypted root partition.";
|
||||
default = "769362f6-43d4-4b83-a12c-d006c9bd6613";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue