feat: add 'bruno' module

This commit is contained in:
2026-02-13 10:44:07 +01:00
parent 0df8cdb354
commit 833d999027
2 changed files with 21 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ in
../../modules/shell ../../modules/shell
../../modules/music ../../modules/music
../../modules/taskwarrior.nix ../../modules/taskwarrior.nix
../../modules/bruno.nix
]; ];
sops = { sops = {

20
home/modules/bruno.nix Normal file
View 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 ];
};
}