1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 03:32:08 +01:00
github.com-tboerger-nixos-c.../machines/modules/boot.nix
2022-02-20 17:46:48 +01:00

41 lines
663 B
Nix

{ pkgs, lib, config, options, ... }:
let
cfg = config.my.modules.boot;
in
{
options = with lib; {
my = {
modules = {
boot = {
enable = mkEnableOption ''
Whether to enable boot module
'';
};
};
};
};
config = with lib;
mkIf cfg.enable {
boot = {
kernelPackages = pkgs.linuxPackages_latest;
cleanTmpDir = true;
loader = {
efi = {
canTouchEfiVariables = true;
};
systemd-boot = {
enable = true;
consoleMode = "2";
editor = false;
};
};
};
};
}