enable gpu support in btop
This commit is contained in:
parent
fac66830e8
commit
8eae5fd8af
2 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue