enable gpu support in btop

This commit is contained in:
Noa Aarts 2024-11-11 11:49:35 +01:00
parent fac66830e8
commit 8eae5fd8af
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 9 additions and 1 deletions

View file

@ -3,6 +3,7 @@
enableFlut ? false,
enableGames ? false,
displays ? [ ],
extraConfig ? { },
}:
{
config,
@ -32,6 +33,7 @@ in
../modules/games
../modules/hyprland.nix
./nvim/nvim.nix
extraConfig
]
++ lib.optionals enableGraphical [
./discord/discord.nix
@ -242,5 +244,4 @@ in
pinentryPackage = lib.mkIf enableGraphical pkgs.pinentry-qt;
};
};
}

View file

@ -143,6 +143,13 @@
scale = "1";
}
];
extraConfig = {
programs.btop.package = pkgs.btop.overrideAttrs (oldAttrs: rec {
cmakeFlags = (oldAttrs.cmakeFlags or [ ]) ++ [
"-DBTOP_GPU=ON"
];
});
};
};
"root" = import ./root.nix;
};