mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-27 10:44:34 +00:00
38 lines
901 B
Nix
38 lines
901 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkOption mkEnableOption literalExpression;
|
|
|
|
cfg = config.myOptions.system.boot;
|
|
in {
|
|
imports = [
|
|
./secure-boot.nix
|
|
./plymouth.nix
|
|
];
|
|
|
|
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.";
|
|
};
|
|
|
|
tmpOnTmpfs = mkEnableOption ''
|
|
`/tmp` living on tmpfs. false means it will be cleared manually on each reboot
|
|
|
|
This option defaults to `true` if the host provides patches to the kernel package in
|
|
`boot.kernelPatches`
|
|
'';
|
|
|
|
silentBoot =
|
|
mkEnableOption ''
|
|
almost entirely silent boot process through `quiet` kernel parameter
|
|
''
|
|
// {default = cfg.plymouth.enable;};
|
|
};
|
|
}
|