29 lines
770 B
Nix
29 lines
770 B
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ config, pkgs, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
./hardware.nix
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.grub.enable = true;
|
||
boot.loader.grub.device = "/dev/nvme0n1";
|
||
boot.loader.grub.useOSProber = true;
|
||
|
||
# Setup keyfile
|
||
boot.initrd.secrets = {
|
||
"/boot/crypto_keyfile.bin" = null;
|
||
};
|
||
|
||
boot.loader.grub.enableCryptodisk = true;
|
||
|
||
boot.initrd.luks.devices."luks-34a5d7fd-7f3a-4778-8d3a-c7bdec52e96c".keyFile = "/boot/crypto_keyfile.bin";
|
||
|
||
system.stateVersion = "24.05"; # Did you read the comment?
|
||
|
||
}
|