Skip to content

Instantly share code, notes, and snippets.

@jD91mZM2
Created July 16, 2019 09:58
Show Gist options
  • Save jD91mZM2/0d606e227b28b86ec14b5aa96fc5c52e to your computer and use it in GitHub Desktop.
Save jD91mZM2/0d606e227b28b86ec14b5aa96fc5c52e to your computer and use it in GitHub Desktop.
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot"; # Same as in hardware-configuration.nix
};
grub = {
enable = true;
efiSupport = true;
device = "nodev";
memtest86.enable = true;
extraFiles = {
"dvorak.gkb" = pkgs.runCommand "grub-layout" {} ''
# grub-kbdcomp does not work as it depends on ckbcomp being in $PATH
"${pkgs.ckbcomp}/bin/ckbcomp" dvorak | "${pkgs.grub2}/bin/grub-mklayout" -o "$out"
'';
};
extraConfig = ''
terminal_input at_keyboard
insmod keylayouts
keymap /boot/dvorak.gkb
'';
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment