fix: add wrapper util for home manager modules
This commit is contained in:
@@ -1,19 +1,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
needsNixGL = config.lib ? nixGL;
|
||||
bruno =
|
||||
if needsNixGL then
|
||||
pkgs.bruno.overrideAttrs (old: {
|
||||
postInstall = (old.postInstall or "") + ''
|
||||
wrapProgram $out/bin/bruno --add-flags "--no-sandbox"
|
||||
'';
|
||||
})
|
||||
else
|
||||
pkgs.bruno;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
home.packages = [ (config.nixgl.wrap bruno) ];
|
||||
home.packages = [ (config.nixgl.wrap (config.wrapApp pkgs.bruno "--no-sandbox")) ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user