SHARE
TWEET

Untitled

a guest Jan 17th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { config, lib, ... }:
  2.  
  3. with lib;
  4.  
  5. {
  6.   # Add support for Grub secrets
  7.   config = mkIf (config.boot.loader.grub.enable && config.boot.initrd.secrets != {}) {
  8.     boot.loader = {
  9.       supportsInitrdSecrets = mkForce true;
  10.       grub.extraInitrd = "/boot/grub/secrets-initrd.gz";
  11.       grub.extraPrepareConfig = ''
  12.         ${config.system.build.initialRamdiskSecretAppender}/bin/append-initrd-secrets /boot/grub/secrets-initrd.gz
  13.       '';
  14.     };
  15.   };
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top