Created new bitwarden-cli-bin for macos install

This commit is contained in:
Random936 2024-09-26 14:05:15 -07:00
parent 0a49ce845b
commit 5ac291629a
4 changed files with 41 additions and 3 deletions

View File

@ -21,10 +21,10 @@
"scroll-reverser"
"google-chrome"
"instantview"
"nextcloud"
"tailscale"
"discord"
"iterm2"
"zoom"
"vlc"
];
};
@ -33,6 +33,9 @@
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
# Enable rosetta
virtualisation.rosetta.enable = true;
# Keyboard and Mouse
system.keyboard = {
enableKeyMapping = true;

View File

@ -1,10 +1,18 @@
{ ... }:
{
{ pkgs, lib, config, ... }:
let
mypkgs = import ../packages/all-packages.nix {
inherit pkgs lib config;
};
in {
home = {
username = "jadenmaxwell";
homeDirectory = "/Users/jadenmaxwell";
};
home.packages = with mypkgs; [
bitwarden-cli-bin
];
imports = [
./shared.nix
./neovim.nix

View File

@ -1,4 +1,5 @@
{ pkgs, lib, config, ... }: rec {
tpm = pkgs.callPackage ./tpm {};
evil-winrm = pkgs.callPackage ./evil-winrm {};
bitwarden-cli-bin = pkgs.callPackage ./bitwarden-cli-bin {};
}

View File

@ -0,0 +1,26 @@
{ lib, stdenv, fetchzip }: stdenv.mkDerivation rec {
pname = "bitwarden-cli-bin";
version = "2024.8.2";
src = fetchzip {
url = "https://github.com/bitwarden/clients/releases/download/cli-v${version}/bw-macos-${version}.zip";
hash = "sha256-obJVIJ2n5lEXsjn7RQ+lIraHnBcn4vsU6LaAV4NPBSU=";
};
doCheck = true;
dontStrip = true;
installPhase = ''
mkdir -p $out/bin
cp -rv $src/bw $out/bin/bw
'';
meta = with lib; {
description = "Secure and free password manager for all of your devices";
homepage = "https://bitwarden.com";
license = lib.licenses.gpl3Only;
mainProgram = "bw";
platforms = platforms.darwin;
};
}