This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/modules/system/boot.nix

23 lines
491 B
Nix
Raw Normal View History

2021-12-15 05:04:57 +00:00
{ config, lib, pkgs, ... }:
let cfg = config.this.systems.boot;
in with lib; {
options.this.systems.boot = {
enable = mkOption {
default = true;
type = with types; bool;
description = "Is there a physical power button?";
};
};
config = mkIf cfg.enable {
boot = {
# Enable bootloader & clear /tmp on boot.
cleanTmpDir = true;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
};
}