System Gen151 @ 2026-04-09-18:24:51 by jonas@monolith
This commit is contained in:
@@ -7,6 +7,11 @@
|
|||||||
cfg = config.hive.ntsync;
|
cfg = config.hive.ntsync;
|
||||||
in {
|
in {
|
||||||
options.hive.ntsync.enable = lib.mkEnableOption "Enable the nt-sync kernel driver.";
|
options.hive.ntsync.enable = lib.mkEnableOption "Enable the nt-sync kernel driver.";
|
||||||
|
options.hive.ntsync.proton = lib.mkOption {
|
||||||
|
description = "Make proton use ntsync";
|
||||||
|
default = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
@@ -17,6 +22,10 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelModules = ["ntsync"];
|
boot.kernelModules = ["ntsync"];
|
||||||
|
|
||||||
|
environment.variables = lib.optionalAttrs cfg.proton {
|
||||||
|
PROTON_USE_NTSYNC = 1;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user