mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
Apply suggestions from code review - option name
Add `hardware` to option name Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
parent
0012cffb69
commit
34f02c326d
2 changed files with 6 additions and 6 deletions
|
|
@ -42,7 +42,7 @@ There are multiple versions of the Surface kernel available:
|
|||
This repo uses `longterm` by default, but you can switch it to `stable` by adding this to your configuration file:
|
||||
|
||||
```nix
|
||||
microsoft-surface.kernelVersion = "stable";
|
||||
hardware.microsoft-surface.kernelVersion = "stable";
|
||||
```
|
||||
|
||||
### Support Tools
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ let
|
|||
inherit (lib) mkDefault mkOption types versions;
|
||||
|
||||
# Set the version and hash for the kernel sources
|
||||
srcVersion = with config.microsoft-surface;
|
||||
srcVersion = with config.hardware.microsoft-surface;
|
||||
if kernelVersion == "longterm" then
|
||||
"6.12.22"
|
||||
else if kernelVersion == "stable" then
|
||||
|
|
@ -12,7 +12,7 @@ let
|
|||
else
|
||||
abort "Invalid kernel version: ${kernelVersion}";
|
||||
|
||||
srcHash = with config.microsoft-surface;
|
||||
srcHash = with config.hardware.microsoft-surface;
|
||||
if kernelVersion == "longterm" then
|
||||
"sha256-q0iACrSZhaeNIxiuisXyj9PhI+oXNX7yFJgQWlMzczY="
|
||||
else if kernelVersion == "stable" then
|
||||
|
|
@ -21,7 +21,7 @@ let
|
|||
abort "Invalid kernel version: ${kernelVersion}";
|
||||
|
||||
# Set the version and hash for the linux-surface releases
|
||||
pkgVersion = with config.microsoft-surface;
|
||||
pkgVersion = with config.hardware.microsoft-surface;
|
||||
if kernelVersion == "longterm" then
|
||||
"6.12.7"
|
||||
else if kernelVersion == "stable" then
|
||||
|
|
@ -29,7 +29,7 @@ let
|
|||
else
|
||||
abort "Invalid kernel version: ${kernelVersion}";
|
||||
|
||||
pkgHash = with config.microsoft-surface;
|
||||
pkgHash = with config.hardware.microsoft-surface;
|
||||
if kernelVersion == "longterm" then
|
||||
"sha256-Pv7O8D8ma+MPLhYP3HSGQki+Yczp8b7d63qMb6l4+mY="
|
||||
else if kernelVersion == "stable" then
|
||||
|
|
@ -60,7 +60,7 @@ let
|
|||
};
|
||||
|
||||
in {
|
||||
options.microsoft-surface.kernelVersion = mkOption {
|
||||
options.hardware.microsoft-surface.kernelVersion = mkOption {
|
||||
description = "Kernel Version to use (patched for MS Surface)";
|
||||
type = types.enum [
|
||||
"longterm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue