feat: add 'bruno' module
This commit is contained in:
20
home/modules/bruno.nix
Normal file
20
home/modules/bruno.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
useNixGL = config.lib ? nixGL;
|
||||
brunoBase =
|
||||
if useNixGL then
|
||||
pkgs.bruno.overrideAttrs (old: {
|
||||
postInstall = (old.postInstall or "") + ''
|
||||
wrapProgram $out/bin/bruno --add-flags "--no-sandbox"
|
||||
'';
|
||||
})
|
||||
else
|
||||
pkgs.bruno;
|
||||
brunoFinal = if useNixGL then config.lib.nixGL.wrap brunoBase else brunoBase;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
home.packages = [ brunoFinal ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user