From 4443a9bb26473121aba6da265a690aa5a5f64741 Mon Sep 17 00:00:00 2001 From: Krzysztof Saczuk Date: Fri, 31 May 2024 11:55:27 +0200 Subject: [PATCH] feat(bootloader): add archlinux menu entry --- .vscode/settings.json | 8 ++++++++ hosts/pc/hardware.nix | 11 ++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 969bc49..6d8a3a4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -29,13 +29,17 @@ "cSpell.words": [ "ahci", "bootloader", + "bootmgfw", "catppuccin", + "chainloader", "direnv", "ehci", "Filesystems", "flatpak", "Hyprland", + "insmod", "jetbrains", + "menuentry", "neovim", "nerdfonts", "nixos", @@ -43,12 +47,16 @@ "nvim", "nvme", "optimise", + "partlabel", "pkgs", "polkit", + "Redistributable", "substituters", + "swraid", "thalheim", "togglable", "usbhid", + "vfat", "xhci", "zoxide" ], diff --git a/hosts/pc/hardware.nix b/hosts/pc/hardware.nix index ad30912..b841bd5 100644 --- a/hosts/pc/hardware.nix +++ b/hosts/pc/hardware.nix @@ -27,13 +27,22 @@ device = "/dev/md/storage"; }; - # TODO: Temp, remove when full transision to NixOS is done. + # TODO: Temp, remove when full transition to NixOS is done. fileSystems."/media/arch" = { device = "/dev/disk/by-uuid/0db30fcb-b052-4ef0-9c08-1382d82b4eb5"; }; swapDevices = [{device = "/dev/disk/by-partlabel/swap";}]; + modules.hardware.grub.extraEntries = '' + menuentry "Arch Linux" --class arch { + insmod part_gpt + insmod fat + search --no-floppy --fs-uuid --set=root 5BCB-27B7 + linux /vmlinuz-linux root=UUID=0db30fcb-b052-4ef0-9c08-1382d82b4eb5 + initrd /initramfs-linux.img + } + menuentry "Windows" --class windows { insmod part_gpt insmod fat