Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, lib, ... }:
- with lib;
- {
- # Add support for Grub secrets
- config = mkIf (config.boot.loader.grub.enable && config.boot.initrd.secrets != {}) {
- boot.loader = {
- supportsInitrdSecrets = mkForce true;
- grub.extraInitrd = "/boot/grub/secrets-initrd.gz";
- grub.extraPrepareConfig = ''
- ${config.system.build.initialRamdiskSecretAppender}/bin/append-initrd-secrets /boot/grub/secrets-initrd.gz
- '';
- };
- };
- }
Add Comment
Please, Sign In to add comment