feat(nixpak): bitwarden package
This commit is contained in:
37
packages/nixpak/bitwarden-desktop.nix
Normal file
37
packages/nixpak/bitwarden-desktop.nix
Normal 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")
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user