ccache: use preprocessor mode; system76-scheduler: add osu! to games

This commit is contained in:
chayleaf 2023-06-12 20:12:15 +07:00
parent 26f1d0a864
commit 683e9a747f
3 changed files with 9 additions and 0 deletions

View file

@ -337,11 +337,15 @@ rec {
}; };
}; };
linuxPackages_bpiR3 = pkgs.linuxPackagesFor linux_bpiR3; linuxPackages_bpiR3 = pkgs.linuxPackagesFor linux_bpiR3;
# there are few direct hits with the linux kernel, so use CCACHE_NODIRECT
# (direct hits are file-based, non-direct are preprocessed file-based)
ccacheWrapper = pkgs.ccacheWrapper.override { ccacheWrapper = pkgs.ccacheWrapper.override {
extraConfig = '' extraConfig = ''
export CCACHE_COMPRESS=1 export CCACHE_COMPRESS=1
export CCACHE_DIR="/var/cache/ccache" export CCACHE_DIR="/var/cache/ccache"
export CCACHE_UMASK=007 export CCACHE_UMASK=007
export CCACHE_SLOPPINESS=include_file_mtime,time_macros
export CCACHE_NODIRECT=1
if [ ! -d "$CCACHE_DIR" ]; then if [ ! -d "$CCACHE_DIR" ]; then
echo "=====" echo "====="
echo "Directory '$CCACHE_DIR' does not exist" echo "Directory '$CCACHE_DIR' does not exist"

View file

@ -213,6 +213,9 @@ in {
environment.etc."system76-scheduler/exceptions.ron".source = environment.etc."system76-scheduler/exceptions.ron".source =
"${pkgs.system76-scheduler}/etc/system76-scheduler/exceptions.ron";*/ "${pkgs.system76-scheduler}/etc/system76-scheduler/exceptions.ron";*/
services.system76-scheduler.enable = true; services.system76-scheduler.enable = true;
services.system76-scheduler.assignments = {
games.matchers = [ "osu!" ];
};
common.workstation = true; common.workstation = true;
common.gettyAutologin = true; common.gettyAutologin = true;

View file

@ -15,6 +15,8 @@
export CCACHE_COMPRESS=1 export CCACHE_COMPRESS=1
export CCACHE_DIR="${config.programs.ccache.cacheDir}" export CCACHE_DIR="${config.programs.ccache.cacheDir}"
export CCACHE_UMASK=007 export CCACHE_UMASK=007
export CCACHE_SLOPPINESS=include_file_mtime,time_macros
export CCACHE_NODIRECT=1
if [ ! -d "$CCACHE_DIR" ]; then if [ ! -d "$CCACHE_DIR" ]; then
echo "=====" echo "====="
echo "Directory '$CCACHE_DIR' does not exist" echo "Directory '$CCACHE_DIR' does not exist"