devices.surface: use nixos kernel

This commit is contained in:
2024-11-29 14:15:37 +08:00
parent eaf74c6f3b
commit 394a3a60c0
4 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ build
.vscode .vscode
.cache .cache
.ccls-cache .ccls-cache
archive

View File

@@ -26,7 +26,7 @@ inputs:
}; };
nixpkgs.march = "skylake"; nixpkgs.march = "skylake";
nix = { substituters = [ "https://nix-store.chn.moe?priority=100" ]; githubToken.enable = true; }; nix = { substituters = [ "https://nix-store.chn.moe?priority=100" ]; githubToken.enable = true; };
kernel = { variant = null; patches = [ "hibernate-progress" ]; }; kernel = { variant = "nixos"; patches = [ "surface" "hibernate-progress" ]; };
}; };
hardware = { cpus = [ "intel" ]; gpu.type = "intel"; }; hardware = { cpus = [ "intel" ]; gpu.type = "intel"; };
services = services =

10
flake.lock generated
View File

@@ -879,15 +879,15 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1732483221, "lastModified": 1732536142,
"narHash": "sha256-kF6rDeCshoCgmQz+7uiuPdREVFuzhIorGOoPXMalL2U=", "narHash": "sha256-DlwQrOBZET55+tOy2eO3DdAmH9B5xSQzj0TcuWClyF8=",
"owner": "NixOS", "owner": "CHN-beta",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "45348ad6fb8ac0e8415f6e5e96efe47dd7f39405", "rev": "20d99c009ced76a49be02d7ba709b2ce5378c806",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "CHN-beta",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"type": "github" "type": "github"
} }

View File

@@ -19,7 +19,7 @@
inputs = { nixpkgs.follows = "nixpkgs"; home-manager.follows = "home-manager"; }; inputs = { nixpkgs.follows = "nixpkgs"; home-manager.follows = "home-manager"; };
}; };
nur-linyinfeng = { url = "github:linyinfeng/nur-packages"; inputs.nixpkgs.follows = "nixpkgs"; }; nur-linyinfeng = { url = "github:linyinfeng/nur-packages"; inputs.nixpkgs.follows = "nixpkgs"; };
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:CHN-beta/nixos-hardware";
envfs = { url = "github:Mic92/envfs"; inputs.nixpkgs.follows = "nixpkgs"; }; envfs = { url = "github:Mic92/envfs"; inputs.nixpkgs.follows = "nixpkgs"; };
nix-flatpak.url = "github:gmodena/nix-flatpak"; nix-flatpak.url = "github:gmodena/nix-flatpak";
chaotic = chaotic =