diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-17 21:22:14 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-17 21:24:35 +0100 |
| commit | 1fdbb44df1c3b8c0bab9e36cee3e8167e102efc3 (patch) | |
| tree | 210b87b2addd1cc16f06f5646276215841a30622 /modules/nixos/personal/boot.nix | |
| parent | 262ad5ace2500d97ee3015aee7655f5893801153 (diff) | |
add filtron and rss-bridge modules
Diffstat (limited to 'modules/nixos/personal/boot.nix')
| -rw-r--r-- | modules/nixos/personal/boot.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/nixos/personal/boot.nix b/modules/nixos/personal/boot.nix new file mode 100644 index 0000000..b3f36aa --- /dev/null +++ b/modules/nixos/personal/boot.nix @@ -0,0 +1,17 @@ +{ config, lib, ... }: + +let cfg = config.personal.boot; +in { + options.personal.boot = { grub.enable = lib.mkEnableOption "grub"; }; + + config.boot.loader = lib.mkIf cfg.grub.enable { + efi = { canTouchEfiVariables = true; }; + grub = { + enable = true; + version = 2; + efiSupport = true; + enableCryptodisk = config.boot.initrd.luks.devices != { }; + device = "nodev"; + }; + }; +} |
