-
-
Save jD91mZM2/0d606e227b28b86ec14b5aa96fc5c52e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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