summaryrefslogtreecommitdiffstats
path: root/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-06-14 23:37:38 +0200
committermakefu <github@syntax-fehler.de>2023-06-14 23:38:41 +0200
commita2040ce915a4e8a2ae9f0897a13f77d6592dd81e (patch)
treebda6ff26e479e638410d421d5edf3b3dcc3de1bb /2configs
parentb9a5d97bf892bd046afb670e4d362b0e1386f184 (diff)
fs: single-disk-encrypted-zfs takes hostId as parameter
Diffstat (limited to '2configs')
-rw-r--r--2configs/fs/disko/single-disk-encrypted-zfs.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/2configs/fs/disko/single-disk-encrypted-zfs.nix b/2configs/fs/disko/single-disk-encrypted-zfs.nix
index 1b35e5b2b..9454c9892 100644
--- a/2configs/fs/disko/single-disk-encrypted-zfs.nix
+++ b/2configs/fs/disko/single-disk-encrypted-zfs.nix
@@ -1,8 +1,13 @@
-{ disks ? [ "/dev/nvme0n1" ], ... }:
+{ disks ? [ "/dev/nvme0n1" ], hostId, ... }:
let
disk = builtins.elemAt disks 0;
in {
+ boot.zfs.requestEncryptionCredentials = true;
boot.supportedFilesystems = [ "zfs" ];
+ boot.loader.efi.canTouchEfiVariables = true;
+ boot.loader.systemd-boot.enable = true;
+ networking.hostId = hostId;
+
disko.devices = {
disk = {
nvme = {
[cgit] Unable to lock slot /tmp/cgit/5f000000.lock: No such file or directory (2)