System Gen230 @ 2026-04-02-13:08:57 by jonas@comfy-station

This commit is contained in:
2026-04-02 13:08:57 +02:00
parent 0e8a37c000
commit 7d0974ea92
3 changed files with 26 additions and 0 deletions

24
modules/system/ntsync.nix Normal file
View File

@@ -0,0 +1,24 @@
{
flake.nixosModules.ntsync = {
config,
lib,
pkgs,
...
}: let
current_kernel_pkgs = pkgs.linuxPackages_latest;
current_kernel_version = current_kernel_pkgs.kernel.version;
cfg = config.hive.ntsync;
in {
options.hive.ntsync.enable = lib.mkEnableOption "Enable the nt-sync kernel driver. Enforces a minimum kernel version of 6.14.";
config = lib.mkIf cfg.enable {
# Require at least 6.14 for the new nt-sync driver
boot.kernelPackages =
if lib.versionAtLeast current_kernel_version "6.14"
then current_kernel_pkgs
else pkgs.linuxPackages_6_14;
boot.kernelModules = ["ntsync"];
};
};
}