feat(nixpak): bitwarden package

This commit is contained in:
Guz
2025-02-09 00:16:50 -03:00
parent 5e9284c874
commit d76efe4838
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{
pkgs,
lib,
mkNixPak,
}:
mkNixPak {
config = {sloth, ...}: {
app.package = pkgs.bitwarden-desktop;
imports = [
./modules/gui-base.nix
];
dbus.policies = {
"org.kde.StatusNotifierWatcher" = "talk";
"org.freedesktop.Notifications" = "talk";
"org.freedesktop.secrets" = "talk";
"com.canonical.AppMenu.Registrar" = "talk";
# Lock on lockscreen
"org.gnome.ScreenSaver" = "talk";
"org.freedesktop.ScreenSaver" = "talk";
};
bubblewrap = {
network = true;
shareIpc = true;
env = {
"XDG_CURRENT_DESKTOP" = sloth.env "XDG_CURRENT_DESKTOP";
};
bind.rw = [
(sloth.concat' sloth.xdgConfigHome "/Bitwarden")
];
};
};
}

View File

@@ -6,5 +6,9 @@
mkNixPak = inputs.nixpak.lib.nixpak {
inherit lib pkgs;
};
bitwarden-desktop = import ./bitwarden-desktop.nix {inherit pkgs lib mkNixPak;};
in {
bitwarden-desktop = bitwarden-desktop.config.script;
bitwarden-desktop-env = bitwarden-desktop.config.env;
}