mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-19 02:13:06 +01:00
24 lines
539 B
Nix
24 lines
539 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
namespace,
|
|
config,
|
|
...
|
|
}: with lib; with lib.${namespace};
|
|
let
|
|
cfg = config.${namespace}.common.kernel;
|
|
in {
|
|
options.${namespace}.common.kernel = {
|
|
enable = mkEnableOption "Modify the standard kernel settings";
|
|
version = mkOption {
|
|
type = types.str;
|
|
default = "linuxPackages_latest";
|
|
example = "linuxPackages_latest";
|
|
description = "Set the kernel version to be used by your system";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
boot.kernelPackages = pkgs.${cfg.version};
|
|
};
|
|
}
|