|
4 | 4 | inherit (lib) mkDefault mkOption types versions;
|
5 | 5 |
|
6 | 6 | # Set the version and hash for the kernel sources
|
7 |
| - srcVersion = with config.microsoft-surface; |
| 7 | + srcVersion = with config.hardware.microsoft-surface; |
8 | 8 | if kernelVersion == "longterm" then
|
9 | 9 | "6.12.22"
|
10 | 10 | else if kernelVersion == "stable" then
|
11 | 11 | "6.14.2"
|
12 | 12 | else
|
13 | 13 | abort "Invalid kernel version: ${kernelVersion}";
|
14 | 14 |
|
15 |
| - srcHash = with config.microsoft-surface; |
| 15 | + srcHash = with config.hardware.microsoft-surface; |
16 | 16 | if kernelVersion == "longterm" then
|
17 | 17 | "sha256-q0iACrSZhaeNIxiuisXyj9PhI+oXNX7yFJgQWlMzczY="
|
18 | 18 | else if kernelVersion == "stable" then
|
|
21 | 21 | abort "Invalid kernel version: ${kernelVersion}";
|
22 | 22 |
|
23 | 23 | # Set the version and hash for the linux-surface releases
|
24 |
| - pkgVersion = with config.microsoft-surface; |
| 24 | + pkgVersion = with config.hardware.microsoft-surface; |
25 | 25 | if kernelVersion == "longterm" then
|
26 | 26 | "6.12.7"
|
27 | 27 | else if kernelVersion == "stable" then
|
28 | 28 | "6.14.2"
|
29 | 29 | else
|
30 | 30 | abort "Invalid kernel version: ${kernelVersion}";
|
31 | 31 |
|
32 |
| - pkgHash = with config.microsoft-surface; |
| 32 | + pkgHash = with config.hardware.microsoft-surface; |
33 | 33 | if kernelVersion == "longterm" then
|
34 | 34 | "sha256-Pv7O8D8ma+MPLhYP3HSGQki+Yczp8b7d63qMb6l4+mY="
|
35 | 35 | else if kernelVersion == "stable" then
|
|
60 | 60 | };
|
61 | 61 |
|
62 | 62 | in {
|
63 |
| - options.microsoft-surface.kernelVersion = mkOption { |
| 63 | + options.hardware.microsoft-surface.kernelVersion = mkOption { |
64 | 64 | description = "Kernel Version to use (patched for MS Surface)";
|
65 | 65 | type = types.enum [
|
66 | 66 | "longterm"
|
|
0 commit comments