summaryrefslogtreecommitdiff
path: root/hosts/thinkpad/hardware.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/thinkpad/hardware.nix')
-rw-r--r--hosts/thinkpad/hardware.nix34
1 files changed, 24 insertions, 10 deletions
diff --git a/hosts/thinkpad/hardware.nix b/hosts/thinkpad/hardware.nix
index 109f6c0..a012cbc 100644
--- a/hosts/thinkpad/hardware.nix
+++ b/hosts/thinkpad/hardware.nix
@@ -1,9 +1,22 @@
-_: {
+{
+ config,
+ inputs,
+ ...
+}: {
+ # external defaults
+ imports = [
+ inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
+ ];
+
# bootloader
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi = {
- canTouchEfiVariables = true;
- efiSysMountPoint = "/boot/efi";
+ boot.loader = {
+ efi.canTouchEfiVariables = true;
+ grub = {
+ enable = true;
+ efiSupport = true;
+ device = "nodev";
+ splashImage = config.theme.wallpaper;
+ };
};
# kernel modules
@@ -17,23 +30,24 @@ _: {
hardware.cpu.intel.updateMicrocode = true;
# luks device
- boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/fe5e24c0-d35d-4722-929d-1496b7eb9872";
+ boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/b94c88f4-a74e-42b6-b525-d69dc70cbe09";
+ boot.initrd.luks.devices."swap".device = "/dev/disk/by-uuid/61866c6a-da39-4a0e-97aa-1437e8827621";
# root
fileSystems."/" = {
- device = "/dev/disk/by-uuid/e7bdadd0-0914-42ea-81c4-4449537d3477";
+ device = "/dev/disk/by-uuid/71e9cd8e-1f62-4587-bcfe-9ee74eb25d53";
fsType = "btrfs";
};
# boot
- fileSystems."/boot/efi" = {
- device = "/dev/disk/by-uuid/6CE8-EFE0";
+ fileSystems."/boot" = {
+ device = "/dev/disk/by-uuid/5116-3132";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
# swap
swapDevices = [
- {device = "/dev/disk/by-uuid/01099db8-dd7a-4fe5-981a-6889fdb3735e";}
+ {device = "/dev/disk/by-uuid/8e876b25-899d-40ea-b9e5-764a38d818b7";}
];
}