my config

This commit is contained in:
boyreau 2026-05-28 11:30:05 +02:00
commit 68fdd07f2e
5 changed files with 250 additions and 0 deletions

36
bootloader.nix Normal file
View file

@ -0,0 +1,36 @@
{ config, lib, pkgs, ... }:
{
boot = {
loader = {
grub = {
enable = true;
efiSupport = true;
efiInstallAsRemovable = true;
enableCryptodisk = true;
device = "nodev";
extraConfig = ''
source (crypto0)/os/arch/boot/grub/grub.cfg
'';
};
efi.efiSysMountPoint = "/boot/efi";
};
initrd = {
luks = {
devices.safe = {
device = "/dev/disk/by-uuid/16fe9b20-c31d-4b51-9b06-670713597c07";
preLVM = true;
bypassWorkqueues = true;
};
};
systemd = {
initrdBin = with pkgs; [
cryptsetup
];
};
kernelModules = [ "cryptd" "uas" "usbcore" "usb_storage" "vfat" "nls_cp437" "nls_iso8859_1" ];
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "rtsx_pci_sdmmc" "dm_crypt" "crypto_user" ];
supportedFilesystems = [ "btrfs" "vfat" "luks" ];
};
};
}