From e3453983be4df77f6fa92145ae900a8ac059d026 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Fri, 10 Apr 2026 13:18:28 +0100 Subject: [PATCH] migrate flake lock --- config/modules/surface_patches.nix | 6 +++++- flake.lock | 15 +++++++++------ flake.nix | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/config/modules/surface_patches.nix b/config/modules/surface_patches.nix index 6b0ff6e..83ee19d 100644 --- a/config/modules/surface_patches.nix +++ b/config/modules/surface_patches.nix @@ -6,7 +6,7 @@ }: { flake-file.inputs = { - x1e-kernel.url = "file:///home/doloro/x1e-kernel-main.zip"; + x1e-kernel.url = "git+https://git.scug.io/nikkuss/x1e-nixos.git"; }; modules.surface-patches = { nixos = @@ -16,6 +16,10 @@ x1e-kernel.nixosModules.default ]; + x1e.model = "15"; # "13" (default) or "15" — selects the correct DTB + x1e.cpuParking = true; # loads cpu_parking at boot + x1e.ecReboot = true; # loads ec_reboot at boot, exposes /sys/kernel/ec_reboot/reboot + # Prevent reboot hang - qcom_smd_qrtr workers stuck in D-state systemd.settings.Manager.DefaultTimeoutStopSec = "15s"; systemd.settings.Manager.DefaultDeviceTimeoutSec = "15s"; diff --git a/flake.lock b/flake.lock index efb3ed6..51723bf 100644 --- a/flake.lock +++ b/flake.lock @@ -1534,14 +1534,17 @@ }, "x1e-kernel": { "locked": { - "lastModified": 1775750605, - "narHash": "sha256-qHeSM7bY9FLsdyi4iKsZshYjR/zRm8WJTzO8NmtUfyg=", - "type": "tarball", - "url": "file:///home/doloro/x1e-kernel-main.zip" + "lastModified": 1775821553, + "narHash": "sha256-RJpa+xfFtgloGEH1sEUpU75vEGZEMGoaawTAwDGdxB8=", + "ref": "refs/heads/main", + "rev": "95f3f072da16549f69c7eaea398be37336c7922c", + "revCount": 1, + "type": "git", + "url": "https://git.scug.io/nikkuss/x1e-nixos.git" }, "original": { - "type": "tarball", - "url": "file:///home/doloro/x1e-kernel-main.zip" + "type": "git", + "url": "https://git.scug.io/nikkuss/x1e-nixos.git" } }, "xdph": { diff --git a/flake.nix b/flake.nix index edc0478..6383d7d 100644 --- a/flake.nix +++ b/flake.nix @@ -46,7 +46,7 @@ url = "github:nix-community/stylix"; inputs.nixpkgs.follows = "nixpkgs"; }; - x1e-kernel.url = "file:///home/doloro/x1e-kernel-main.zip"; + x1e-kernel.url = "git+https://git.scug.io/nikkuss/x1e-nixos.git"; zen-browser = { url = "github:youwen5/zen-browser-flake"; inputs.nixpkgs.follows = "nixpkgs";