diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-11 18:12:03 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-15 21:55:27 +0100 |
| commit | 0afbdaa261653e73a4f2f39d7529114989474a64 (patch) | |
| tree | 08df68b6c1a92708566e0e716d11d619e37d1621 /nixos/boot.nix | |
| parent | 7714f2c6a4c77e616fd3c64868c10337b9ca3a1e (diff) | |
factor out common configuration options
Diffstat (limited to 'nixos/boot.nix')
| -rw-r--r-- | nixos/boot.nix | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/nixos/boot.nix b/nixos/boot.nix index 1e1f0c0..bbdf1fe 100644 --- a/nixos/boot.nix +++ b/nixos/boot.nix @@ -1,54 +1,7 @@ { config, pkgs, ... }: { - imports = [ # Include the results of the hardware scan. - ./hardware-configuration.nix + personal.boot.grub.enable = true; - <nixos-hardware/dell/latitude/7490> - <nixos-hardware/common/pc/ssd> - ]; - - # Bootloader - boot.loader = { - efi = { canTouchEfiVariables = true; }; - grub = { - enable = true; - version = 2; - efiSupport = true; - enableCryptodisk = true; - device = "nodev"; - # extraEntries = - # # Recovery mode - # # Generate the image with generate-recovery.sh - # '' - # menuentry "NixOS - Recovery" { - # search --set=drive1 -fs-uuid 330B-45DE - # linux ($drive1)//kernels/recovery-linux-bzImage loglevel=4 - # initrd ($drive1)//kernels/recovery-initrd - # } - # ''; - }; - }; - - # Decrypt disk - boot.initrd.luks.devices = { - sda3_crypt = { - name = "sda3_crypt"; - device = "/dev/disk/by-uuid/ba5dc9cd-3a73-4a01-880b-8720844307ae"; - preLVM = true; - }; - }; - - # Kernel - boot.initrd.availableKernelModules = [ "usb_storage" ]; - boot.kernelParams = [ "i915.dc_enable=0" "intel_idle.max_cstate=1" ]; boot.kernelPackages = pkgs.linuxPackages_latest; - - # Hardware - hardware.firmware = with pkgs; [ firmwareLinuxNonfree ]; - ## mcelog - hardware.mcelog.enable = true; - services.udev.extraRules = '' - ACTION=="add", KERNEL=="mcelog", SUBSYSTEM=="misc", TAG+="systemd", ENV{SYSTEMD_WANTS}+="mcelog.service" - ''; } |
