feat: add 'bruno' module
This commit is contained in:
@@ -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
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