From f983d68dd963231636efb9821eb57fae0ac8d5fe Mon Sep 17 00:00:00 2001 From: starr-dusT Date: Wed, 28 Dec 2022 02:05:44 -0800 Subject: [PATCH] "install" nb with chezmoi --- home/.chezmoiexternal.toml | 7 +++++++ provision/tasks/system/packages.yml | 1 + provision/tasks/terminal/nb.yml | 5 ----- provision/tasks/terminal/packages.yml | 1 - 4 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 provision/tasks/terminal/nb.yml diff --git a/home/.chezmoiexternal.toml b/home/.chezmoiexternal.toml index 0eb7c936..5f53f728 100644 --- a/home/.chezmoiexternal.toml +++ b/home/.chezmoiexternal.toml @@ -20,8 +20,15 @@ url = "https://github.com/dracula/zsh/archive/master.zip" exact = true stripComponents = 1 + refreshPeriod = "168h" include = ["*/dracula.zsh-theme", "*/lib/**"] +["bin/nb"] + type = "file" + url = "https://raw.github.com/xwmx/nb/master/nb" + executable = true + refreshPeriod = "168h" + #[".oh-my-zsh/custom/themes/dracula.zsh-theme"] # type = "file" # url = "https://github.com/dracula/zsh/archive/master.zip" diff --git a/provision/tasks/system/packages.yml b/provision/tasks/system/packages.yml index 8a6f2d5b..17d2a5a9 100644 --- a/provision/tasks/system/packages.yml +++ b/provision/tasks/system/packages.yml @@ -27,6 +27,7 @@ - rsync # Remote fast incremental file transfer tool - unzip # List, test and extract compressed files in a ZIP archive - mimeo # Open files by MIME-type or file name using regular expressions + - busybox # Swiss Army Knife of Embedded Linux state: present become: true diff --git a/provision/tasks/terminal/nb.yml b/provision/tasks/terminal/nb.yml deleted file mode 100644 index 612b0d07..00000000 --- a/provision/tasks/terminal/nb.yml +++ /dev/null @@ -1,5 +0,0 @@ -- name: Download nb - ansible.builtin.get_url: - url: https://raw.github.com/xwmx/nb/master/nb - dest: /home/{{ user }}/bin/nb - mode: 0755 diff --git a/provision/tasks/terminal/packages.yml b/provision/tasks/terminal/packages.yml index 657016b7..503250fc 100644 --- a/provision/tasks/terminal/packages.yml +++ b/provision/tasks/terminal/packages.yml @@ -20,4 +20,3 @@ - name: Install rbw community.general.cargo: name: rbw # Unofficial command line client for Bitwarden -- import_tasks: nb.yml # Command line and local web note‑taking, bookmarking, archiving, and knowledge base application