diff --git a/modules/system/ntsync.nix b/modules/system/ntsync.nix index ab7f127..f57226c 100644 --- a/modules/system/ntsync.nix +++ b/modules/system/ntsync.nix @@ -7,6 +7,11 @@ cfg = config.hive.ntsync; in { 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 { assertions = [ @@ -17,6 +22,10 @@ ]; boot.kernelModules = ["ntsync"]; + + environment.variables = lib.optionalAttrs cfg.proton { + PROTON_USE_NTSYNC = 1; + }; }; }; }