forked from pub-solar/os
Benjamin Bädorf
067ce16246
Start move to /boot kernel mount x-os: prepare booting from unencrypted /boot partition Move to systemd-boot Remove all unencrypted secrets
22 lines
400 B
Nix
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;
|
|
};
|
|
}
|