pub-solar-os/modules/x-os/boot.nix
Benjamin Bädorf 067ce16246
Remove git crypt
Start move to /boot kernel mount
x-os: prepare booting from unencrypted /boot partition
Move to systemd-boot
Remove all unencrypted secrets
2021-10-24 17:13:16 +02:00

22 lines
400 B
Nix

{ config, pkgs, lib, self, ... }:
let
cfg = config.pub-solar.x-os;
in
{
config = {
# Enable plymouth for better experience of booting
boot.plymouth.enable = true;
# Mount / luks device in initrd
# Allow fstrim to work on it.
boot.initrd = {
luks.devices."cryptroot" = {
allowDiscards = true;
};
};
boot.loader.systemd-boot.enable = true;
};
}