diff --git a/files/scripts/install-bitwarden.nu b/files/scripts/install-bitwarden.nu new file mode 100644 index 0000000..5495458 --- /dev/null +++ b/files/scripts/install-bitwarden.nu @@ -0,0 +1,6 @@ +#!/usr/bin/env nu + +http get https://vault.bitwarden.com/download/?app=cli&platform=linux | save /tmp/bitwarden.zip + +^unzip /tmp/bitwarden.zip -d /usr/bin/ +rm /tmp/bitwarden.zip diff --git a/recipes/common/jp-packages-bootc.yml b/recipes/common/jp-packages-bootc.yml index dec9bf7..bb11ec4 100644 --- a/recipes/common/jp-packages-bootc.yml +++ b/recipes/common/jp-packages-bootc.yml @@ -34,8 +34,8 @@ modules: - carapace-bin - https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm - type: script - snippets: - - echo "/usr/bin/nu" >> /etc/shells + scripts: + - install-bitwarden.nu - type: systemd user: enabled: diff --git a/recipes/common/jp-packages.yml b/recipes/common/jp-packages.yml index 8b9eb6e..b34ef83 100644 --- a/recipes/common/jp-packages.yml +++ b/recipes/common/jp-packages.yml @@ -28,8 +28,8 @@ modules: - util-linux - carapace-bin - type: script - snippets: - - echo "/usr/bin/nu" >> /etc/shells + scripts: + - install-bitwarden.nu - type: systemd user: enabled: