This commit is contained in:
Melvin Ragusa
2026-02-02 16:51:55 +01:00
parent a3ccd8602d
commit 84e8c35d44
3 changed files with 137 additions and 11 deletions

View File

@@ -27,8 +27,11 @@
# ═══════════════════════════════════════════════════════════════
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_cachyos;
chaotic.scx.enable = true; # Enable sched-ext schedulers for CachyOS
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-x86_64-v3;
# sched-ext scheduler for gaming performance
services.scx.enable = true;
services.scx.scheduler = "scx_lavd"; # Low-latency scheduler, good for gaming
# ═══════════════════════════════════════════════════════════════
# NETWORKING

135
flake.lock generated
View File

@@ -1,5 +1,37 @@
{
"nodes": {
"cachyos-kernel": {
"flake": false,
"locked": {
"lastModified": 1769780135,
"narHash": "sha256-4U/BvhiP1PJcI3bRYkIeNVio71BnkzVrUdTUqzBxjXo=",
"owner": "CachyOS",
"repo": "linux-cachyos",
"rev": "1acd46cdeb2598f0300b6d7141d47edbf63772cc",
"type": "github"
},
"original": {
"owner": "CachyOS",
"repo": "linux-cachyos",
"type": "github"
}
},
"cachyos-kernel-patches": {
"flake": false,
"locked": {
"lastModified": 1769958071,
"narHash": "sha256-WZRyCoSfs2HS38SyaTq30SsX74LFdp5wXqikpMK4UEc=",
"owner": "CachyOS",
"repo": "kernel-patches",
"rev": "92eb5164cc1aede04e3131e1fd3c9a77b17e3d7d",
"type": "github"
},
"original": {
"owner": "CachyOS",
"repo": "kernel-patches",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@@ -16,6 +48,40 @@
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1767039857,
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "NixOS",
"repo": "flake-compat",
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1768135262,
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
@@ -99,6 +165,29 @@
"type": "github"
}
},
"nix-cachyos-kernel": {
"inputs": {
"cachyos-kernel": "cachyos-kernel",
"cachyos-kernel-patches": "cachyos-kernel-patches",
"flake-compat": "flake-compat_2",
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1769968495,
"narHash": "sha256-NzP/Uds4NZbvWaQtPtywY/HNCs9CWttP0AHDDR1ty3o=",
"owner": "xddxdd",
"repo": "nix-cachyos-kernel",
"rev": "61a10ef8b4b6f8606fa0658b2053bdd4660c1d92",
"type": "github"
},
"original": {
"owner": "xddxdd",
"ref": "release",
"repo": "nix-cachyos-kernel",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1768032153,
@@ -112,7 +201,38 @@
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1765674936,
"narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1769944092,
"narHash": "sha256-yX+M8Bv4uu7I43tTx9Po/5MTgGZ9l3i+juPEY+oeYSE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8e883f431f048f270b4c62dcea2e751b124210d7",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable-small",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1769789167,
"narHash": "sha256-kKB3bqYJU5nzYeIROI82Ef9VtTbu4uA3YydSk/Bioa8=",
@@ -135,11 +255,11 @@
]
},
"locked": {
"lastModified": 1770039807,
"narHash": "sha256-1/MBdrRIj0G8cNpVNAlbMQQpyW5MyfqfnfCRM6Yg2GY=",
"lastModified": 1770044084,
"narHash": "sha256-i7EOevX0Whfxq4Krb8Jo8v0nNEbdVQ8YJ9r3o/e6LrU=",
"owner": "noctalia-dev",
"repo": "noctalia-shell",
"rev": "a8853b78f5816a19d3f2d9f4621627dce851dd50",
"rev": "168c16da7a418dad1ead2880c235a28ce26e1891",
"type": "github"
},
"original": {
@@ -155,11 +275,11 @@
]
},
"locked": {
"lastModified": 1770036606,
"narHash": "sha256-W2OzmjkI3g1MqqbmP/EFeL2uf2o1aSg8UEEzBfiljCo=",
"lastModified": 1770044781,
"narHash": "sha256-YoFjMys2ChNUeppMTq1DugT6DfT4qoFG7e23OjmmPVs=",
"owner": "anomalyco",
"repo": "opencode",
"rev": "3408f1a6ae7f8783d5fa80dab2cb2cf2e976da6d",
"rev": "06d63ca54cacfce5af7fdab216ffe7f35d778642",
"type": "github"
},
"original": {
@@ -172,7 +292,8 @@
"root": {
"inputs": {
"ghostty": "ghostty",
"nixpkgs": "nixpkgs_2",
"nix-cachyos-kernel": "nix-cachyos-kernel",
"nixpkgs": "nixpkgs_3",
"noctalia": "noctalia",
"opencode": "opencode",
"vicinae": "vicinae",

View File

@@ -28,7 +28,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
};
# Binary caches for faster builds
@@ -36,10 +36,12 @@
extra-substituters = [
"https://vicinae.cachix.org"
"https://nix-community.cachix.org"
"https://attic.xuyh0120.win/lantian"
];
extra-trusted-public-keys = [
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="
];
};
@@ -53,7 +55,7 @@
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
inputs.chaotic.nixosModules.default
{ nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ]; }
];
};
};