summaryrefslogtreecommitdiff
path: root/hosts/thinkpad
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 18:29:53 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-26 18:29:53 -0400
commitbf3755cc2a5bd54400167d41ce9c75751028bc40 (patch)
treed46595b26e4c9ff4e1b6375b9c57c73fcd136aa2 /hosts/thinkpad
parentadd openrgb support, and custom rust scheduler (diff)
downloaddotfiles-nix-bf3755cc2a5bd54400167d41ce9c75751028bc40.tar.gz
dotfiles-nix-bf3755cc2a5bd54400167d41ce9c75751028bc40.tar.bz2
dotfiles-nix-bf3755cc2a5bd54400167d41ce9c75751028bc40.zip
refactor bootloaders into modules
Diffstat (limited to 'hosts/thinkpad')
-rw-r--r--hosts/thinkpad/default.nix3
-rw-r--r--hosts/thinkpad/hardware.nix12
2 files changed, 3 insertions, 12 deletions
diff --git a/hosts/thinkpad/default.nix b/hosts/thinkpad/default.nix
index 8db964c..e57214d 100644
--- a/hosts/thinkpad/default.nix
+++ b/hosts/thinkpad/default.nix
@@ -37,6 +37,9 @@ _: {
enable = true;
ip = "10.3.0.5/32";
};
+ bootloader = {
+ grub.enable = true;
+ };
# modules
battery.enable = true;
diff --git a/hosts/thinkpad/hardware.nix b/hosts/thinkpad/hardware.nix
index a012cbc..adc160b 100644
--- a/hosts/thinkpad/hardware.nix
+++ b/hosts/thinkpad/hardware.nix
@@ -1,5 +1,4 @@
{
- config,
inputs,
...
}: {
@@ -8,17 +7,6 @@
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
];
- # bootloader
- boot.loader = {
- efi.canTouchEfiVariables = true;
- grub = {
- enable = true;
- efiSupport = true;
- device = "nodev";
- splashImage = config.theme.wallpaper;
- };
- };
-
# kernel modules
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];