summaryrefslogtreecommitdiffstats
path: root/lass/1systems/hilum/physical.nix
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-01-26 23:46:51 +0100
committerlassulus <git@lassul.us>2023-01-26 23:46:51 +0100
commit34360eb931e89b09512091fe819fb59568852441 (patch)
tree4a7c998e2fe9b5987ea2173873be09ec3163b0e9 /lass/1systems/hilum/physical.nix
parentf10b0ca342af20cdd1f4f25bd47e6f21a115a300 (diff)
l hilum.r: pass luks passphrase in flash script
Diffstat (limited to 'lass/1systems/hilum/physical.nix')
-rw-r--r--lass/1systems/hilum/physical.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lass/1systems/hilum/physical.nix b/lass/1systems/hilum/physical.nix
index e6860a496..f97873aa9 100644
--- a/lass/1systems/hilum/physical.nix
+++ b/lass/1systems/hilum/physical.nix
@@ -12,11 +12,18 @@
};
config.environment.etc.hilum-disk.text = config.mainDisk;
}
+ {
+ options.luksPassFile = lib.mkOption {
+ type = lib.types.nullOr lib.types.str;
+ default = null;
+ };
+ }
];
disko.devices = import ./disk.nix {
inherit lib;
disk = config.mainDisk;
+ keyFile = config.luksPassFile;
};
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];