Nyx-Modules/Modules/System/Application/Grub/all-grub.nix
2025-08-29 12:29:00 +02:00

20 lines
441 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.all-grub;
in
{
options.nyx-module.system.all-grub = {
enable = lib.mkEnableOption "Enable all-grub (system) module";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.all-grub;
description = "Package to install for all-grub.";
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
};
}