diff --git a/home/hosts/work/default.nix b/home/hosts/work/default.nix index db7baa9..fa42db6 100644 --- a/home/hosts/work/default.nix +++ b/home/hosts/work/default.nix @@ -27,6 +27,7 @@ in ../../modules/shell ../../modules/music ../../modules/taskwarrior.nix + ../../modules/bruno.nix ]; sops = { diff --git a/home/modules/bruno.nix b/home/modules/bruno.nix new file mode 100644 index 0000000..6c718b0 --- /dev/null +++ b/home/modules/bruno.nix @@ -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 ]; + }; +}