nixdots/options/system/boot/default.nix

38 lines
901 B
Nix
Raw Normal View History

2024-07-27 01:07:07 +02:00
{
config,
lib,
pkgs,
...
}: let
2024-04-12 20:57:52 +02:00
inherit (lib) mkOption mkEnableOption literalExpression;
cfg = config.myOptions.system.boot;
in {
imports = [
./secure-boot.nix
2024-04-12 23:28:50 +02:00
./plymouth.nix
2024-04-12 20:57:52 +02:00
];
options.myOptions.system.boot = {
kernel = mkOption {
type = with lib.types; nullOr raw;
default = pkgs.linuxPackages_latest;
example = literalExpression "pkgs.linuxPackages_latest";
description = "The kernel to use for the system.";
};
2024-07-27 01:07:07 +02:00
tmpOnTmpfs = mkEnableOption ''
`/tmp` living on tmpfs. false means it will be cleared manually on each reboot
2024-04-12 20:57:52 +02:00
2024-07-27 01:07:07 +02:00
This option defaults to `true` if the host provides patches to the kernel package in
`boot.kernelPatches`
'';
2024-04-13 00:07:53 +02:00
2024-07-27 01:07:07 +02:00
silentBoot =
mkEnableOption ''
almost entirely silent boot process through `quiet` kernel parameter
''
// {default = cfg.plymouth.enable;};
2024-04-12 20:57:52 +02:00
};
}