From c9c6ba7f560b7b2008de551fdf3279ac4d04c533 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Sun, 5 Jul 2026 13:46:48 +0200 Subject: [PATCH] disable scx on acer --- hosts/acer.nix | 1 + hosts/gaming-pc.nix | 1 + modules/system/gaming.nix | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/acer.nix b/hosts/acer.nix index 175de1b..6933cff 100644 --- a/hosts/acer.nix +++ b/hosts/acer.nix @@ -94,6 +94,7 @@ rec { gaming = true; enableTailscale = true; ipv6Mostly = true; + scx = false; }; virtualisation.vmVariant = { diff --git a/hosts/gaming-pc.nix b/hosts/gaming-pc.nix index 07bf8a7..a417c99 100644 --- a/hosts/gaming-pc.nix +++ b/hosts/gaming-pc.nix @@ -119,6 +119,7 @@ gaming = true; # users.drugi = true; enableTailscale = true; + scx = true; }; virtualisation.vmVariant = { diff --git a/modules/system/gaming.nix b/modules/system/gaming.nix index 3ce529d..5d93363 100644 --- a/modules/system/gaming.nix +++ b/modules/system/gaming.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, modulesPath, ... }: { options.lumpiasty.gaming = lib.mkEnableOption "Enable options specific to gaming computers"; + options.lumpiasty.scx = lib.mkEnableOption "Enable sched-ext"; config = lib.mkIf config.lumpiasty.gaming { # https://github.com/NixOS/nixpkgs/blob/10e687235226880ed5e9f33f1ffa71fe60f2638a/nixos/modules/programs/steam.nix @@ -32,7 +33,7 @@ }; services.scx = { - enable = true; + enable = config.lumpiasty.scx; scheduler = "scx_cosmos"; }; };