mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 12:06:09 +01:00
microsoft/surface: rename 'lts' and 'latest' to 'longterm' and 'stable'
This commit is contained in:
parent
dab2104c1f
commit
2034c5d2e7
2 changed files with 9 additions and 9 deletions
|
|
@ -36,13 +36,13 @@ _*NOTE:*_ Some built-in Kernel config items need to be set, that aren't set by d
|
||||||
|
|
||||||
There are multiple versions of the Surface kernel available:
|
There are multiple versions of the Surface kernel available:
|
||||||
|
|
||||||
- `lts`, which tracks the latest LTS release.
|
- `longterm`, which tracks the latest long term support (LTS) release.
|
||||||
- `latest`, which tracks the most recent release.
|
- `stable`, which tracks the most recent stable release.
|
||||||
|
|
||||||
This repo uses `lts` by default, but you can switch it to `latest` by adding this to your configuration file:
|
This repo uses `longterm` by default, but you can switch it to `stable` by adding this to your configuration file:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
microsoft-surface.kernelVersion = "latest";
|
microsoft-surface.kernelVersion = "stable";
|
||||||
```
|
```
|
||||||
|
|
||||||
### Support Tools
|
### Support Tools
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ let
|
||||||
|
|
||||||
# Set the full kernel version and hashes
|
# Set the full kernel version and hashes
|
||||||
version =
|
version =
|
||||||
if config.microsoft-surface.kernelVersion == "lts" then
|
if config.microsoft-surface.kernelVersion == "longterm" then
|
||||||
"6.12.19"
|
"6.12.19"
|
||||||
else if config.microsoft-surface.kernelVersion == "latest" then
|
else if config.microsoft-surface.kernelVersion == "stable" then
|
||||||
"6.13.6"
|
"6.13.6"
|
||||||
else
|
else
|
||||||
abort "Invalid kernel version: ${config.microsoft-surface.kernelVersion}";
|
abort "Invalid kernel version: ${config.microsoft-surface.kernelVersion}";
|
||||||
|
|
@ -56,10 +56,10 @@ in {
|
||||||
options.microsoft-surface.kernelVersion = mkOption {
|
options.microsoft-surface.kernelVersion = mkOption {
|
||||||
description = "Kernel Version to use (patched for MS Surface)";
|
description = "Kernel Version to use (patched for MS Surface)";
|
||||||
type = types.enum [
|
type = types.enum [
|
||||||
"lts"
|
"longterm"
|
||||||
"latest"
|
"stable"
|
||||||
];
|
];
|
||||||
default = "lts";
|
default = "longterm";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue