From d44f528d0e76224f6730fc9e93f50a031a039dd6 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Thu, 2 Apr 2026 02:38:22 +0200 Subject: [PATCH] kick system76-scheduler out and use scx_cosmos --- hosts/acer.nix | 1 - modules/default.nix | 1 - modules/desktop/system76-scheduler.nix | 15 --------------- modules/system/gaming.nix | 5 +++++ 4 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 modules/desktop/system76-scheduler.nix diff --git a/hosts/acer.nix b/hosts/acer.nix index 654611f..08f370a 100644 --- a/hosts/acer.nix +++ b/hosts/acer.nix @@ -88,7 +88,6 @@ rec { laptop = true; gaming = true; enableTailscale = true; - system76Scheduler = true; }; virtualisation.vmVariant = { diff --git a/modules/default.nix b/modules/default.nix index 9790940..ecc2178 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -21,6 +21,5 @@ desktop/touchpad.nix desktop/pulseaudio.nix desktop/tailscale.nix - desktop/system76-scheduler.nix ]; } \ No newline at end of file diff --git a/modules/desktop/system76-scheduler.nix b/modules/desktop/system76-scheduler.nix deleted file mode 100644 index a13aeab..0000000 --- a/modules/desktop/system76-scheduler.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ config, lib, pkgs, modulesPath, ... }: - -{ - options.lumpiasty.system76Scheduler = lib.mkEnableOption "Enable system76-scheduler"; - - config = lib.mkIf (config.lumpiasty.system76Scheduler) { - # Enable system76-scheduler - # Config basically rewrite of stock, a bit tuned - services.system76-scheduler = { - enable = true; - useStockConfig = true; - }; - # Add https://github.com/maxiberta/kwin-system76-scheduler-integration kwin script - }; -} \ No newline at end of file diff --git a/modules/system/gaming.nix b/modules/system/gaming.nix index 90b409e..3ce529d 100644 --- a/modules/system/gaming.nix +++ b/modules/system/gaming.nix @@ -30,5 +30,10 @@ extraGroups = ["gamemode"]; }; }; + + services.scx = { + enable = true; + scheduler = "scx_cosmos"; + }; }; } \ No newline at end of file