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,
|
enableFlut ? false,
|
||||||
enableGames ? false,
|
enableGames ? false,
|
||||||
displays ? [ ],
|
displays ? [ ],
|
||||||
|
extraConfig ? { },
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
|
@ -32,6 +33,7 @@ in
|
||||||
../modules/games
|
../modules/games
|
||||||
../modules/hyprland.nix
|
../modules/hyprland.nix
|
||||||
./nvim/nvim.nix
|
./nvim/nvim.nix
|
||||||
|
extraConfig
|
||||||
]
|
]
|
||||||
++ lib.optionals enableGraphical [
|
++ lib.optionals enableGraphical [
|
||||||
./discord/discord.nix
|
./discord/discord.nix
|
||||||
|
|
@ -242,5 +244,4 @@ in
|
||||||
pinentryPackage = lib.mkIf enableGraphical pkgs.pinentry-qt;
|
pinentryPackage = lib.mkIf enableGraphical pkgs.pinentry-qt;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,13 @@
|
||||||
scale = "1";
|
scale = "1";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
extraConfig = {
|
||||||
|
programs.btop.package = pkgs.btop.overrideAttrs (oldAttrs: rec {
|
||||||
|
cmakeFlags = (oldAttrs.cmakeFlags or [ ]) ++ [
|
||||||
|
"-DBTOP_GPU=ON"
|
||||||
|
];
|
||||||
|
});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"root" = import ./root.nix;
|
"root" = import ./root.nix;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue