mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-03-14 15:51:32 +01:00
21 lines
480 B
Nix
21 lines
480 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
namespace,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
inherit (lib.${namespace}) mkOpt;
|
|
cfg = config.${namespace}.common.kernel;
|
|
in {
|
|
options.${namespace}.common.kernel = {
|
|
enable = mkEnableOption "Modify the standard kernel settings";
|
|
version = mkOpt lib.types.str "linuxPackages_latest" "Set the kernel version to be used by your system";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
boot.kernelPackages = pkgs.${cfg.version};
|
|
};
|
|
}
|