Files
JakeHillion fca3cd4f5e
flake / flake (push) Successful in 2m42s
zram/zswap: automate choice
2025-02-21 17:56:45 +00:00

40 lines
804 B
Nix

{ config, pkgs, lib, ... }:
{
imports = [
./disko.nix
];
config = {
## Mirrored grub
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev"; # leave it to mirroredBoots
mirroredBoots = lib.mkOverride 51 [
{
devices = [ "/dev/nvme0n1" ];
path = "/boot0";
}
{
devices = [ "/dev/nvme1n1" ];
path = "/boot1";
}
];
};
## Setup but don't enable tang, that depends on the device's location
custom.tang = {
networkingModule = "r8169";
secretFile = "/data/disk_encryption.jwe";
devices = [ "disk0-crypt" "disk1-crypt" ];
};
# Delegation
custom.impermanence.enable = true;
};
}