nixos-config/system/mistmane/boot-config.nix

29 lines
615 B
Nix

{ config, pkgs, ... }:
{
boot = {
kernelParams = [ "console=tty1" ];
tmp.cleanOnBoot = true;
loader.efi.canTouchEfiVariables = false;
loader.grub = {
enable = true;
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
initrd.luks.devices."${config.networking.hostName}" = {
name = config.networking.hostName;
device = "/dev/disk/by-uuid/74b7cded-e9f8-432f-b694-5bea09635168";
preLVM = true;
allowDiscards = true;
};
};
fileSystems = {
"/boot".options = [ "noatime" ];
"/".options = [ "noatime" ];
};
}