Scorporo sezione boot da configurazione principale
This commit is contained in:
parent
47664b9526
commit
b5992904e3
2 changed files with 29 additions and 26 deletions
28
hosts/deadbeef/boot.nix
Normal file
28
hosts/deadbeef/boot.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
# Don't use the systemd-boot EFI boot loader.
|
||||||
|
# Necessary for dual boot Windows
|
||||||
|
boot.loader.systemd-boot.enable = false;
|
||||||
|
|
||||||
|
boot.loader = {
|
||||||
|
efi = {
|
||||||
|
canTouchEfiVariables = true;
|
||||||
|
efiSysMountPoint = "/boot";
|
||||||
|
};
|
||||||
|
grub = {
|
||||||
|
enable = true;
|
||||||
|
devices = [ "nodev" ];
|
||||||
|
efiSupport = true;
|
||||||
|
extraEntries = ''
|
||||||
|
menuentry "Windows" {
|
||||||
|
insmod part_gpt
|
||||||
|
insmod fat
|
||||||
|
insmod search_fs_uuid
|
||||||
|
insmod chain
|
||||||
|
search --fs-uuid --set=root FE74-E293
|
||||||
|
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -8,35 +8,10 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./boot.nix
|
||||||
# home-manager.nixosModules.home-manager
|
# home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
# Don't use the systemd-boot EFI boot loader.
|
|
||||||
# Necessary for dual boot Windows
|
|
||||||
boot.loader.systemd-boot.enable = false;
|
|
||||||
|
|
||||||
boot.loader = {
|
|
||||||
efi = {
|
|
||||||
canTouchEfiVariables = true;
|
|
||||||
efiSysMountPoint = "/boot";
|
|
||||||
};
|
|
||||||
grub = {
|
|
||||||
enable = true;
|
|
||||||
devices = [ "nodev" ];
|
|
||||||
efiSupport = true;
|
|
||||||
extraEntries = ''
|
|
||||||
menuentry "Windows" {
|
|
||||||
insmod part_gpt
|
|
||||||
insmod fat
|
|
||||||
insmod search_fs_uuid
|
|
||||||
insmod chain
|
|
||||||
search --fs-uuid --set=root FE74-E293
|
|
||||||
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
my = {
|
my = {
|
||||||
desktop = {
|
desktop = {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue